Support JSR 303 for REST [SPR-6928] #11593
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Eberhard Wolff opened SPR-6928 and commented
JSR 303 validation is not supported for REST methods. It would be nice if you could annotate a controller method with
@Valid
. This would validate the@RequestBody
parameter and return 400 (bad request). If the resulting model contains invalid objects a 500 (internal server error) should be returned.see http://blog.newsplore.com/2010/02/23/spring-mvc-3-0-rest-rebuttal "JSR 303 bean validation not applied in
@Controllers
"Affects: 3.0 GA, 3.0.1
7 votes, 6 watchers
The text was updated successfully, but these errors were encountered: