A ConstraintValidator to validate the given value of type T against a particular annotation of type A.
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.
A descriptor for the type of validation error.
A descriptor for the type of validation error. May be pattern-matched to customize handling of specific errors.
To resolve error messages for the type of validation failure.
To resolve error messages for the type of validation failure. May be pattern-matched to customize handling of specific failures.
Can be overridden to customize and localize error messages.
Represents the navigation path from an object to another in an object graph.
Used to signal validation errors during case class validations.
A TwitterModule to provide a Validator with with default MessageResolver and default com.twitter.finatra.validation.ConstraintValidators.
A TwitterModule to provide a Validator with with default MessageResolver and default com.twitter.finatra.validation.ConstraintValidators.
Extend this module to override defaults of the bound Validator instance.
Example:
import com.twitter.finatra.validation.{Validator, ValidatorModule} import com.twitter.inject.Injector object CustomizedValidatorModule extends ValidatorModule { override def configureValidator(injector: Injector, builder: Validator.Builder): Validator.Builder = builder .withCacheSize(512) .withMessageResolver(new CustomizedMessageResolver()) }
(Since version 2020-03-09) Use com.twitter.finatra.validation.constraints.CountryCode
(Since version 2020-03-09) Use com.twitter.finatra.validation.constraints.FutureTime
(Since version 2020-03-09) Use com.twitter.finatra.validation.constraints.Max
(Since version 2020-03-09) Use com.twitter.finatra.validation.constraints.Min
(Since version 2020-03-09) Use com.twitter.finatra.validation.constraints.NotEmpty
(Since version 2020-03-09) Use com.twitter.finatra.validation.constraints.OneOf
(Since version 2020-03-09) Use com.twitter.finatra.validation.constraints.PastTime
(Since version 2020-03-09) Use com.twitter.finatra.validation.constraints.Pattern
(Since version 2020-03-09) Use com.twitter.finatra.validation.constraints.Range
(Since version 2020-03-09) Use com.twitter.finatra.validation.constraints.Size
(Since version 2020-03-09) Use com.twitter.finatra.validation.constraints.TimeGranularity
(Since version 2020-03-09) Use com.twitter.finatra.validation.constraints.UUID