ValidatorSettings

Compilation / validation settings. Pass to compileSchema.

Members

Variables

baseUri
string baseUri;

Retrieval URI of the schema being compiled; the base against which a root $id (or, absent one, every relative reference) is resolved.

defaultDialect
string defaultDialect;

Dialect assumed when the document carries no $schema.

formatMode
FormatMode formatMode;

format behavior; see FormatMode.

maxDepth
size_t maxDepth;

Evaluation recursion limit; exceeding it throws ValidationException (guards against unboundedly self-referential schemas).

resolver
SchemaResolver resolver;

Optional loader for unknown remote schema URIs. Null (the default) means unresolvable external references fail compilation.

store
SchemaStore store;

Pre-registered schema store consulted for $ref targets. When null a fresh store (containing only the bundled 2020-12 meta-schemas) is used.