If field value is not valid for two the same type constraint, validator should produce two instances of ConstraintViolation or one?
There will be two ConstraintViolation instances. Per spec we need to create one per failing constraint.
Does this task include changing some constraint to be repeatable?
Not sure what exactly you mean, but you can already specify multiple constraints of the same type by using the inner List annotation provided by all built-in constraints. See also - http://beanvalidation.org/1.1/spec/#constraintsdefinitionimplementation-multipleconstraints. Really all we want to do here is to support the new Java 8 syntax on top of the inner annotation.
|