A schema validation error definition.

interface IError {
    data?: unknown;
    instancePath: string;
    keyword: string | string[];
    message?: string;
    params?: ReadonlyJSONObject;
    parentSchema?: unknown;
    propertyName?: string;
    schema?: unknown;
    schemaPath: string;
}

Properties

data?: unknown

Todo

handle new fields from ajv8

instancePath: string

Todo

handle new fields from ajv8

keyword: string | string[]

The keyword whose validation failed.

message?: string

The error message.

Optional parameter metadata that might be included in an error.

parentSchema?: unknown

Todo

handle new fields from ajv8

propertyName?: string

Todo

handle new fields from ajv8

schema?: unknown

Todo

handle new fields from ajv8

schemaPath: string

The path in the schema where the error occurred.