Requires that at least one of the specified validators are satisfied.
If none of the specified validators are satisfied, the specified validation error is used.
The validationError parameter supports special options:
validationError
"use-first-error"
checkers
USE_FIRST_ERROR
"use-last-error"
USE_LAST_ERROR
string
function
Requires that at least one of the specified validators are satisfied.
If none of the specified validators are satisfied, the specified validation error is used.
The
validationError
parameter supports special options:"use-first-error"
- The first error is used, using the same order ascheckers
. SeeUSE_FIRST_ERROR
"use-last-error"
- The last error is used, using the same order ascheckers
. SeeUSE_LAST_ERROR
string
- An errorfunction
- A function that produces a validation error, which can be used, for example, to combine the results