Currently, cascaded validation is only applied on one level of nesting. When having nested collections, e.g. lists of lists, their there is no way of validating the inner lists' elements. E.g. consider this example:
{code} public class Snafu { @NotNull private final String snafu = null; }
public class SnafuHolder { @Valid private final List<List<Snafu>> snafuLists = Arrays.asList( Arrays.asList( new Snafu() ) ); } {code}
Validating a {{SnafuHolder}} won't yield any constraint violation, as there is no cascaded validation of the single lists contained within {{snafuLists}}. |
|