dogs_validation library

Classes

Description
A APISchemaObjectMetaVisitor that adds a description to an APISchemaObject.
LengthRange
A FieldValidator that restricts the length of a String.
Maximum
A FieldValidator that restricts a numeric type to a maximum value.
Minimum
A FieldValidator that restricts a numeric type to a minimum value.
NotBlank
A FieldValidator that requires non-null strings to not be blank.
Range
A FieldValidator that restricts a numeric type to a minimum and maximum value.
Regex
A FieldValidator that validates a String using a RegExp.
SizeRange
A FieldValidator that restricts the size of an Iterable.
Validated
A FieldValidator that requires a field to be deeply validated.

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
A FieldValidator that restricts a numeric type to be negative.
negativeOrZero → const Range
A FieldValidator that restricts a numeric type to be negative or zero.
notBlank → const NotBlank
Requires non-null strings to not be blank.
positive → const Range
A FieldValidator that restricts a numeric type to be positive.
positiveOrZero → const Range
A FieldValidator that restricts a numeric type to be positive or zero.
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 field List<Person> members with @validated to validate all members when validating your container.