String validations
Last updated
Was this helpful?
Last updated
Was this helpful?
required
: can't be undefined (default: false
)
empty
: accepts empty string (default: false
)
equal
: * equal to passed value
minLength
: can't be shorter than passed value
maxLength
: can't be longer than passed value
exactLength
: length must be exactly the passed value
regex
: matches the passed regex
alphanumeric
: composed only by alphabetical and numeric characters
lowerCase
: all characters must be lower cased
upperCase
: all characters must be upper cased
email
: is a valid email (default: false
)
nullable
: accepts null (default: false
)
guid
: is a valid guid. You can pass a boolean or the (default: false
)