[bv-dev] Value extraction open issue #2: per constraint ConstraintsApplyTo?

Guillaume Smet guillaume.smet at gmail.com
Fri Jan 13 07:29:05 EST 2017

On Fri, Jan 13, 2017 at 1:01 PM, Gunnar Morling <gunnar at hibernate.org>

> Unfortunately, validationAppliesTo() is already taken:
> http://beanvalidation.org/latest-draft/spec/#
> constraintsdefinitionimplementation-constraintdefinition-
> validationappliesto
> It's used to distinguish between return value and cross-parameter
> constraints.
> Any other name I can think of right now would make up for much
> confusion with that option.

Too good to be true :).

That being said, I'm wondering if we could reuse it and just add 2 other
values to ConstraintTarget. All in all, it's the same concept. The default
being IMPLICIT is not too bad either.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/beanvalidation-dev/attachments/20170113/52c4224a/attachment-0001.html 

More information about the beanvalidation-dev mailing list