dogs_validation library
Constants
- email → const Regex
- Reduced version of a RFC 5322 email regex from https://www.regular-expressions.info/email.html This regex omits IP addresses, double quotes and square brackets.
- negative → const Range
- negativeOrZero → const Range
- notBlank → const NotBlank
- Requires non-null strings to not be blank.
- positive → const Range
- positiveOrZero → const Range
- validated → const Validated
-
Requires a field to be deeply validated.
Example: You have a class Group with a field
List<Person> members
as well as a type Person which is validatable. You can then annotate your fieldList<Person> members
with @validated to validate all members when validating your container.