Sha256: 837946e9c88f08190a10446a1a6b6b9decb51f6b7126bfb5acc4728d68f97d5e

Contents?: true

Size: 332 Bytes

Versions: 22

Compression:

Stored size: 332 Bytes

Contents

module Examples
  class ArrayDefinitions
    include JSON::SchemaBuilder

    def example
      array do
        definitions positiveInt: positive_int
        items ref: '#/definitions/positiveInt'
      end
    end

    def positive_int
      integer do
        minimum 0
        exclusive_minimum true
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
json-schema_builder-0.8.2 spec/support/examples/array_definitions.rb
json-schema_builder-0.8.1 spec/support/examples/array_definitions.rb
json-schema_builder-0.8.0 spec/support/examples/array_definitions.rb
json-schema_builder-0.7.1 spec/support/examples/array_definitions.rb
json-schema_builder-0.7.0 spec/support/examples/array_definitions.rb
json-schema_builder-0.6.1 spec/support/examples/array_definitions.rb
json-schema_builder-0.6.0 spec/support/examples/array_definitions.rb
json-schema_builder-0.5.0 spec/support/examples/array_definitions.rb
json-schema_builder-0.4.0 spec/support/examples/array_definitions.rb
json-schema_builder-0.3.1 spec/support/examples/array_definitions.rb
json-schema_builder-0.3.0 spec/support/examples/array_definitions.rb
json-schema_builder-0.2.1 spec/support/examples/array_definitions.rb
json-schema_builder-0.2.0 spec/support/examples/array_definitions.rb
json-schema_builder-0.1.0 spec/support/examples/array_definitions.rb
json-schema_builder-0.0.9 spec/support/examples/array_definitions.rb
json-schema_builder-0.0.8 spec/support/examples/array_definitions.rb
json-schema_builder-0.0.7 spec/support/examples/array_definitions.rb
json-schema_builder-0.0.6 spec/support/examples/array_definitions.rb
json-schema_builder-0.0.5 spec/support/examples/array_definitions.rb
json-schema_builder-0.0.4 spec/support/examples/array_definitions.rb