Sha256: 9590c15e99d7d4805db51e5b89f0fa40e5cfebe6b6a239a1ebb3ccfc48b22f65

Contents?: true

Size: 236 Bytes

Versions: 8

Compression:

Stored size: 236 Bytes

Contents

module Finitio
  class SetType

    def to_json_schema(*args, &bl)
      {
        type: "array",
        items: elm_type.to_json_schema(*args, &bl),
        uniqueItems: true
      }
    end

  end # class SetType
end # module Finitio

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
finitio-0.12.0 lib/finitio/json_schema/set_type.rb
finitio-0.11.4 lib/finitio/json_schema/set_type.rb
finitio-0.11.3 lib/finitio/json_schema/set_type.rb
finitio-0.11.2 lib/finitio/json_schema/set_type.rb
finitio-0.11.1 lib/finitio/json_schema/set_type.rb
finitio-0.10.0 lib/finitio/json_schema/set_type.rb
finitio-0.9.1 lib/finitio/json_schema/set_type.rb
finitio-0.9.0 lib/finitio/json_schema/set_type.rb