@Valid
Placed before @RequestBody, it makes Spring check the object's constraints. Inside List<...> it checks every nested item. A bad request gets a 400 before the method runs.
Placed before @RequestBody, it makes Spring check the object's constraints. Inside List<...> it checks every nested item. A bad request gets a 400 before the method runs.