Sha256: 95494d79a712be1290e672322e8b4ca8ec8879cc05d8080f17e91b2257e0a9f1

Contents?: true

Size: 1 KB

Versions: 3

Compression:

Stored size: 1 KB

Contents

require 'spec_helper'

RSpec.describe Examples::BuilderReopening, type: :integration do
  it_behaves_like 'a builder' do
    let(:expected_json) do
      {
        type: :object,
        properties: {
          name: {
            type: :string
          },
          settings: {
            type: :object,
            properties: {
              email: {
                type: :string
              },
              phone_number: {
                type: :string
              }
            }
          },
          preferences: {
            anyOf: [
              {
                type: :object,
                properties: {
                  enabled: {
                    type: :boolean,
                    default: true
                  }
                }
              },
              {
                type: :null
              }
            ]
          },
          ids: {
            type: :array,
            items: {
              type: :string,
            }
          }
        }
      }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
json-schema_builder-0.8.2 spec/integration/builder_reopening_spec.rb
json-schema_builder-0.8.1 spec/integration/builder_reopening_spec.rb
json-schema_builder-0.8.0 spec/integration/builder_reopening_spec.rb