to resolve error messages when validation fails. Users can use or extend the messageResolver that is provided by default.
Validate if a value meets the criteria defined in an annotation.
Validate if a value meets the criteria defined in an annotation. E.g. Users can define a Max
annotation as Max(value = 9)
, and verify in the method if the given value is less than or
equal to 9.
an Annotation of type A.
of type T.
a ValidationResult, either ValidationResult.Valid or ValidationResult.Invalid along with validation errors.
A ConstraintValidator to validate the given value of type T against a particular annotation of type A.
the target type of the value to validate against the annotation object.