Sha256: b5945de20c976ab984207dab05c3d0cabf4881d11a1f33edb9f202a565c65c57

Contents?: true

Size: 610 Bytes

Versions: 3

Compression:

Stored size: 610 Bytes

Contents

require 'spec_helper'

RSpec.describe Examples::VerboseObjects, type: :integration do
  it_behaves_like 'a builder' do
    let(:expected_json) do
      {
        type: :object,
        properties: {
          name: {
            type: :string,
            minLength: 1
          },
          ids: {
            type: :array,
            minItems: 1,
            items: {
              type: :object,
              required: [:id],
              properties: {
                id: {
                  type: :integer
                }
              }
            }
          }
        }
      }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
json-schema_builder-0.0.3 spec/integration/verbose_objects_spec.rb
json-schema_builder-0.0.2 spec/integration/verbose_objects_spec.rb
json-schema_builder-0.0.1 spec/integration/verbose_objects_spec.rb