Sha256: d59ebe1127ae86f04eee94d4a2889b932f5f34068c8a120a9d066101291862dd

Contents?: true

Size: 249 Bytes

Versions: 17

Compression:

Stored size: 249 Bytes

Contents

module Examples
  class Ids
    include JSON::SchemaBuilder

    def example
      object do
        id :user_id, required: true
        id :optional_id, null: true
        id :an_id
        id :a_nullable_id, null: true
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

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