Skip to content

Interface: FromJsonSchemaOptions ​

The options of the conversion of a JSON Schema into a schema

Properties ​

convert? ​

optional convert?: 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
false

dialect? ​

optional dialect?: JsonSchemaDialect

The version the JSON Schema is written in.

Default ​

the version its $schema declares, else 'draft-2020-12'


document? ​

optional document?: unknown

The document the local references (#/...) are resolved in, like the OpenAPI document holding the schema object.

Default ​

ts
the JSON Schema itself

schemas? ​

optional schemas?: Record<string, unknown>

Other JSON Schemas the references may refer to, by URI (their $id, when they have one).

Released under the MIT License.