Skip to content

Translation of primitive and specialized types

Example:

  boolField:
    $ref: '../../../openapi.yaml#/components/schemas/Boolean'

should be considered same as

  boolField:
    type: boolean

In result it would be BooleanSchema -> t.boolean.


Another example would be Int64ArraySchema -> t.array(t.number).


  • It must be possible to disable.
  • Transformation based on raw $ref value (endsWith) or later on BooleanSchema (===)?
  • Support custom mappings (e.g. user defines DateSchema to be translated to DateStringSchema)?