Interface JSONSchemaOptions

interface JSONSchemaOptions {
    basePath?: string;
    definitions?: Dict<AnyShape>;
    definitionsKey?: string;
    dialect?: string;
    unusedDefinitions?: boolean;
}

Properties

basePath?: string

The schema base path.

"#"
definitions?: Dict<AnyShape>

The mapping from the definition name to a shape that is converted to the JSON schema.

definitionsKey?: string

The key under which the definitions are stored.

"definitions"
dialect?: string

The schema dialect placed in JSONSchema.$schema.

"https://json-schema.org/draft/2020-12/schema"
unusedDefinitions?: boolean

If true then definitions from definitions that aren't referenced, are still rendered under definitionsKey. Otherwise, those definitions aren't rendered.