Sha256: 3222b5be708d74de9f181a4a656761c24bf974a30f9ddba8c0b84ad6fdca878f

Contents?: true

Size: 301 Bytes

Versions: 13

Compression:

Stored size: 301 Bytes

Contents

module Examples
  class ObjectOrArray
    include JSON::SchemaBuilder

    def example
      object_or_array additional_properties: false, null: true do
        any :thing

        object_or_array :other, additional_properties: false do
          string :stuff
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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