Documentation
    Preparing search index...

    Detailed information about a single validation error.

    Describes exactly what went wrong during validation, including the location, expected type, and actual value.

    interface IError {
        description?: string;
        expected: string;
        path: string;
        value: unknown;
    }
    Index

    Properties

    description?: string

    Human-readable error description.

    Optional additional context about the validation failure, such as constraint violations or custom error messages.

    expected: string

    Expected type expression.

    A human-readable description of what type was expected at this location. Examples: "string", "number & ExclusiveMinimum<0>", "(\"active\" | \"inactive\")".

    path: string

    Property path to the error location.

    A dot-notation path from the root input to the failing property. Uses $input as the root. Example: "$input.user.email" or "$input.items[0].price".

    value: unknown

    The actual value that failed validation.

    The value found at the error path. May be undefined if the property was missing. Useful for debugging type mismatches.