Validation error message
type | example |
---|---|
static string | 'Username is required.' |
template string | 'Password must be at least {min} characters.' |
function | ({ value, field, max }) => `${field} must be less than ${max} but was ${value}.` |
The parsed value
is always provided. If available, field
is also provided. Depending on the validator, additional fields may be available.