How to validate the length of elements inside List using javax.validation.constraints in Spring. Right now @Size is validating on the list size, not on the inside elements.
class RequestInputParamaters {
@NotNull
@NotEmpty
@Size(min = 1, max=4)
List documentIdentifier_value
}