Sha256: ce12df18db0e409b9d104941698c0271b54c6048a7f4d992947809a035c22e1d

Contents?: true

Size: 234 Bytes

Versions: 8

Compression:

Stored size: 234 Bytes

Contents

module Finitio
  class StructType

    def to_json_schema(*args, &bl)
      {
        type: "array",
        items: component_types.map{|c| c.to_json_schema(*args, &bl) }
      }
    end

  end # class StructType
end # module Finitio

Version data entries

8 entries across 8 versions & 1 rubygems

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