Sha256: baabacdfc035c92db3306f3dcda99040806dff42ca69e7fcaf3faa4437ec6dd5

Contents?: true

Size: 250 Bytes

Versions: 8

Compression:

Stored size: 250 Bytes

Contents

module Finitio
  module RelBasedType

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

  end # module RelBasedType
end # module Finitio

Version data entries

8 entries across 8 versions & 1 rubygems

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