Hi again,
On Fri, Jan 13, 2017 at 12:12 PM, Guillaume Smet <guillaume.smet(a)gmail.com>
wrote:
The drawback I can see is that it adds a new reserved method to the
@Constraint annotations. To make the migration more smooth, we could make
it optional and test the returnType of the method before using the result.
After speaking with Gunnar, we would need a "valid" prefix on the name of
the method so something like validationAppliesTo would work:
@Size(3, validationAppliesTo = ANNOTATED_ELEMENT)
@Size(10, validationAppliesTo = WRAPPED_VALUE)
ListOfStrings nicknames;
--
Guillaume