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

    Type Alias FieldOptions

    Configuration options for field validation behavior. These options control how individual fields are processed during validation.

    const options: FieldOptions = {
    allowNull: false,
    bail: true,
    isOptional: false,
    parse: trimParser
    }
    type FieldOptions = {
        allowNull: boolean;
        bail: boolean;
        isOptional: boolean;
        parse?: Parser;
    }
    Index

    Properties

    allowNull: boolean

    Whether null values are allowed for this field

    bail: boolean

    Whether to stop validation on first error

    isOptional: boolean

    Whether the field is optional (can be undefined)

    parse?: Parser

    Optional parser to preprocess the input value