ping-identity
    Preparing search index...

    Type Alias DaVinciFieldValidationError

    DaVinciFieldValidationError:
        | { code: "REQUIRED" }
        | { code: "REGEX_ERROR"; message: string }
        | { code: "INVALID_LENGTH"; max: number; min: number }
        | { code: "UNIQUE_CHARACTER"; min: number }
        | { code: "MAX_REPEAT"; max: number }
        | { character: string; code: "MIN_CHARACTERS"; min: number }

    Structured validation error mapped from the native SDK's validate() result.

    The native bridge maps REQUIRED, REGEX_ERROR, INVALID_LENGTH, UNIQUE_CHARACTER, MAX_REPEAT, and MIN_CHARACTERS directly. Password policy variants include native constraint values, so consumers do not need to parse localized messages: INVALID_LENGTH includes min and max, UNIQUE_CHARACTER includes min, MAX_REPEAT includes max, and MIN_CHARACTERS includes character and min.

    Use DaVinciClient.validate to check a collector's current value on demand (e.g. on-blur) without advancing the flow.