Sha256: 2de6b1da062ecaee152f8cadbc575294f3991f1a9b5f4f7af337439661bbb2b8

Contents?: true

Size: 204 Bytes

Versions: 3

Compression:

Stored size: 204 Bytes

Contents

module Finitio
  class UnionType

    def to_json_schema(*args, &bl)
      {
        anyOf: candidates.map{|c| c.to_json_schema(*args, &bl) }
      }
    end

  end # class UnionType
end # module Finitio

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
finitio-0.10.0 lib/finitio/json_schema/union_type.rb
finitio-0.9.1 lib/finitio/json_schema/union_type.rb
finitio-0.9.0 lib/finitio/json_schema/union_type.rb