Method: Finitio::SeqType#to_json_schema
- Defined in:
- lib/finitio/json_schema/seq_type.rb
#to_json_schema(*args, &bl) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/finitio/json_schema/seq_type.rb', line 4 def to_json_schema(*args, &bl) if type = [:jsonSchemaType] return { type: type } end { type: "array", items: elm_type.to_json_schema(*args, &bl) } end |