Base issue interface.

interface BaseIssue<TInput> {
    abortEarly?: boolean;
    abortPipeEarly?: boolean;
    expected: null | string;
    input: TInput;
    issues?: [BaseIssue<TInput>, ...BaseIssue<TInput>[]];
    kind: "schema" | "validation" | "transformation";
    lang?: string;
    message: string;
    path?: [IssuePathItem, ...IssuePathItem[]];
    received: string;
    requirement?: unknown;
    type: string;
}

Type Parameters

  • TInput

Hierarchy (View Summary)

Properties

abortEarly?: boolean

Whether it should be aborted early.

abortPipeEarly?: boolean

Whether a pipe should be aborted early.

expected: null | string

The expected property.

input: TInput

The raw input data.

issues?: [BaseIssue<TInput>, ...BaseIssue<TInput>[]]

The sub issues.

kind: "schema" | "validation" | "transformation"

The issue kind.

lang?: string

The selected language.

message: string

The error message.

The issue path.

received: string

The received property.

requirement?: unknown

The input requirement.

type: string

The issue type.