Package-level declarations
Pre-defined schema validations for different data types.
Pre-defined schema validations for different data types.
Types
Validation that checks that a file's type is one of the acceptedFileTypes.
Validation that checks that a value is less than a given exclusiveMax value.
Validation that checks that a value is greater than a given exclusiveMin value.
Validation that checks that a string's length is exactly requiredLength, when it is not empty.
Validation that checks that a string matches a given regex, when it is not empty.
Validation that checks that a form value matches a given computedValue.
Validation that checks that a string matches an email according to regex (which defaults to EMAIL_REGEX) when it is not empty.
Validation that checks that a value is at most a given max value.
Validation that checks that a string's length is at most a given maxLength.
Validation that checks that a value is at least a given min value.
Validation that checks that a string's length is at least a given minLength, when it is not empty.
Validation that checks that a value equals a given requiredValue.
Validation that checks that a value does not equal a given forbiddenValue.
Validation that checks that a string is not blank (according to String.isBlank) when it is also not empty.
Validation that checks that a value is not one of the disallowedValues.
Validation that checks that a value is one of the allowedValues.
Validation that checks that a big decimal value's scale is requiredScale.
Asynchronous scoped validation more easily implementable from Java.
ScopedValidation more easily implementable from Java.
A scoped stateful validation is a stateful validation that should only run when the current "validation scope" is allowed by the provided scopes.
Synchronous scoped validation more easily implementable from Java.
A scoped validation is a validation that should only run when the current "validation scope" is allowed by the provided scopes.
Validation that checks that a value's size is exactly requiredSize, when it is not empty. Values of type Collection, Array (including variants), Map, Table, and File are supported.
Validation that ensures that a value does not contain repeated items. Values of type Collection, Array (including variants), and Table are supported.
Validation that ensures that a value does not contain repeated items, where the uniqueness of an item is determined by its key as returned by selector. Values of type Collection, Array (including variants), and Table are supported.
Functions
Returns whether a value is not missing (this checks that the value is not null, false, or empty). The emptiness of values of type String, Collection, Array (and variants), Map, and Table is checked.