Sha256: 4bb67934c7950f8adce355a0f0d500b3bc7555d16f96f4412e2ca76ab2f0c2c9

Contents?: true

Size: 341 Bytes

Versions: 22

Compression:

Stored size: 341 Bytes

Contents

module Examples
  class ObjectDefinitions
    include JSON::SchemaBuilder

    def example
      object do
        definitions positiveInt: positive_int
        entity :one, 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/object_definitions.rb
json-schema_builder-0.8.1 spec/support/examples/object_definitions.rb
json-schema_builder-0.8.0 spec/support/examples/object_definitions.rb
json-schema_builder-0.7.1 spec/support/examples/object_definitions.rb
json-schema_builder-0.7.0 spec/support/examples/object_definitions.rb
json-schema_builder-0.6.1 spec/support/examples/object_definitions.rb
json-schema_builder-0.6.0 spec/support/examples/object_definitions.rb
json-schema_builder-0.5.0 spec/support/examples/object_definitions.rb
json-schema_builder-0.4.0 spec/support/examples/object_definitions.rb
json-schema_builder-0.3.1 spec/support/examples/object_definitions.rb
json-schema_builder-0.3.0 spec/support/examples/object_definitions.rb
json-schema_builder-0.2.1 spec/support/examples/object_definitions.rb
json-schema_builder-0.2.0 spec/support/examples/object_definitions.rb
json-schema_builder-0.1.0 spec/support/examples/object_definitions.rb
json-schema_builder-0.0.9 spec/support/examples/object_definitions.rb
json-schema_builder-0.0.8 spec/support/examples/object_definitions.rb
json-schema_builder-0.0.7 spec/support/examples/object_definitions.rb
json-schema_builder-0.0.6 spec/support/examples/object_definitions.rb
json-schema_builder-0.0.5 spec/support/examples/object_definitions.rb
json-schema_builder-0.0.4 spec/support/examples/object_definitions.rb