Closed as not planned
Description
Martin Asenov opened SPR-14615 and commented
Class with RestController annotation
Method with RequestMapping annotation, method is POST
Map<String, CustomDto> is a parameter, annotated with @Valid
and @RequestBody
CustomDto has @NotNull
on one of its fields.
The input passes even though a CustomDto entry is not valid (null value on the @NotNull
field)
When I try to change the Map with a single CustomDto, it is validated correctly, but when a map, it is not.
Affects: 4.2.5
Issue Links:
- Bean Validation invocation API for use with individual values and constraints [SPR-11900] #16519 Bean Validation invocation API for use with individual values and constraints
- @Validated support on Iterables (and implementors) [SPR-13428] #18007
@Validated
support on Iterables (and implementors) - Support validating collection of objects on web controller method #16917 Add support for validating a collection of objects
1 votes, 3 watchers