validator
Used to declare a field validator
Info |
---|
|
Atomic validators
These are the building blocks used for creating complex validators
notnull
Check that the attribute is not null. This validator does not take any arguments.
regex
Checks that the value conforms to a regular expression.
Info |
---|
|
minval
Checks that the value is not less than the supplied minimum value.
Info |
---|
|
maxval
Checks that the values is not greater than the supplied maximum value.
Info |
---|
|
minlen
Checks that a string value does not have less characters than the supplied minimum value.
Info |
---|
|
maxlen
Checks that a string value does not have more characters than the supplied maximum value.
Info |
---|
|
Some examples:
Info |
---|
|