Options common to every validator: whether a failure is reported or thrown.
Optional
Throw a ValidationError instead of returning { valid: false }. Defaults to false, which is what makes the validators usable in a boolean expression.
ValidationError
{ valid: false }
false
Options common to every validator: whether a failure is reported or thrown.