I am creating a REST controller which shall take a list of Dtos. It all works but the validation is not working, therefore it fails during persistence only.
My code:
@Valid @RequestBody HashMap<String, MyDto> myDtoMap
And unfortunately the MyDto does not get validated.
I also tried this way:
@Valid @RequestBody HashMap<String, @Valid MyDto> myDtoMap