type Imports = {
[key: string]: Schema
}
schema
should haveid
for type alias identifier- outside
$ref
will be resolve the real schema instead of$ref
; - imports with
{ #: schema }
will have same rule as above;
convert schema to a flow schema
will export ast object export ${upperCamelCase(flowSchema.id)} == ${toFlowType(flowType)}
convert definitions and schema root by toFlow
pipe simplifySchema | convertSchema | schemaToFlow
- Support for string literal object type keys
- Support for exact object types when
additionalProperties: false
is present.