Interface: FromJsonSchemaOptions
The options of the conversion of a JSON Schema into a schema
Properties
convert?
optionalconvert?:boolean
Whether the values are converted like the schemas of lakutata do (the string '5' accepted as the number 5); JSON Schema does not convert.
Default
ts
falsedialect?
optionaldialect?:JsonSchemaDialect
The version the JSON Schema is written in.
Default
the version its $schema declares, else 'draft-2020-12'
document?
optionaldocument?:unknown
The document the local references (#/...) are resolved in, like the OpenAPI document holding the schema object.
Default
ts
the JSON Schema itselfschemas?
optionalschemas?:Record<string,unknown>
Other JSON Schemas the references may refer to, by URI (their $id, when they have one).