Skip to content

JsonSchemaOptions

Defined in: extract/schema.ts:70

Options for JsonSchema.output().

readonly optional deduplicate: boolean

Defined in: extract/schema.ts:74

Extract repeated sub-schemas into $defs/definitions (default: false)


readonly optional description: string

Defined in: extract/schema.ts:80

Set description on root schema


readonly optional draft: "draft-07" | "2019-09" | "2020-12"

Defined in: extract/schema.ts:72

JSON Schema draft version (default: ‘2020-12’)


readonly optional id: string

Defined in: extract/schema.ts:76

Set $id on root schema


readonly optional title: string

Defined in: extract/schema.ts:78

Set title on root schema