alpha_dash |
@AlphaDashRule |
|
|
alpha_num |
@AlphaNumRule |
Checks if the given value is alphanumeric. |
|
alpha |
@AlphaRule |
|
|
array, list |
@ArrayRule |
Checks if the given value is an array. |
min: Minimum length, max: Maximum length |
boolean, bool |
@BooleanRule |
Checks if the given value is a boolean. |
|
charset |
@CharsetRule |
Checks if the given value matches the charset. |
value: supported characters, upper: boolean, lower: boolean, numeric: boolean, accents: boolean |
date |
@DateRule |
Checks if the given value matches the date format. |
dateFormat: either datetime , date or time |
double |
@DoubleRule |
Checks if the given value is a Double. |
min: Minimum size, max: Maximum size |
email |
@EmailRule |
Checks if the given String is a valid E-Mail. |
|
enum |
@EnumRule |
Checks if the given value matches any of the values |
values: Values to match |
ipv4 |
@IPv4AddressRule |
Checks if the given String is an IPv4 address. |
|
ipv6 |
@IPv6AddressRule |
Checks if the given String is an IPv6 address. |
|
int, integer |
@IntegerRule |
Checks if the given value is an Integer and within the bounds. |
min: Minimum size, max: Maximum size, step: Step size |
num, numeric |
@NumericRule |
Checks if the given value is numeric. |
|
regex |
@RegexRule |
Checks if the given value is matching the regex. |
regex: The regex expression |
req, required |
@RequiredRule |
Checks if the value is given. |
|
string |
@StringRule |
Checks if the given value is a String and within the length bounds. |
min: Minimum length, max: Maximum length |
uuid |
@UUIDRule |
Checks if the given value is an UUID. |
|
word_count |
@WordCountRule |
Checks if the given String has enough words. |
min: Minimum size, max: Maximum size, separator: The separator between words. |