@vinejs/vine - v4.0.0-next.1
    Preparing search index...

    Type Alias SimpleError

    Structure of validation errors as collected by the SimpleErrorReporter. Each error provides comprehensive information about validation failures including the error message, field location, and additional context.

    const error: SimpleError = {
    message: 'The email field must be a valid email address',
    field: 'user.email',
    rule: 'email',
    meta: { value: 'invalid-email' }
    }
    type SimpleError = {
        message: string;
        field: string;
        rule: string;
        index?: number;
        meta?: Record<string, any>;
    }
    Index

    Properties

    message: string

    The human-readable error message

    field: string

    The field path where the error occurred (dot notation)

    rule: string

    The name of the validation rule that failed

    index?: number

    The array index if this error is for an array element

    meta?: Record<string, any>

    Additional metadata about the error (e.g., attempted value, rule options)