Possibility to validate collections of primitive types and supported-types

Description

Hello,

The following doesn't work:

I would expect Bean Validation to be able to validate collections of supported types (String, primitives, JodaTime dates...).
For now we can only validate collection of annotated beans, but we can't annotate a String since we don't own this class...

It would be great to have a syntax to handle that, perhaps not the one I tried above but something like this:

Or something similar

Environment

None

Assignee

Unassigned

Reporter

SĂ©bastienL

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Affects versions

Priority

Major
Configure