How can I set a bean validation constraint that a List should at minimum contain 1 and at maximum contain 4 elements, at the same time, check the maximum length of each elements
the following annotation only works for minItems, maxItems, while how to constrain the the maximum length of each elements
@Size(min=1, max=4) private List list;
"list": [ "String1", "String2", "String3" ]
Thanks