Sha256: ef48691bef293b8fb3e63db2006682a5bf66e35385c34bdb256baa9dc8d9a8e4

Contents?: true

Size: 322 Bytes

Versions: 4

Compression:

Stored size: 322 Bytes

Contents

module Examples
  class ArrayAnyOf
    include JSON::SchemaBuilder

    def example
      object do
        array :an_array do
          items do
            any_of [
              object { string(:a_string) },
              object { number(:a_number) }
            ]
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
json-schema_builder-0.8.2 spec/support/examples/array_any_of.rb
json-schema_builder-0.8.1 spec/support/examples/array_any_of.rb
json-schema_builder-0.8.0 spec/support/examples/array_any_of.rb
json-schema_builder-0.7.1 spec/support/examples/array_any_of.rb