Support JSR 303 @Valid on @PathVariable [SPR-9840] #14473
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: duplicate
A duplicate of another issue
Neil Laurance opened SPR-9840 and commented
Similar to #11041.
I have a controller with the following:
Where I have registered a custom converter:
When I run this, my validation code annotation is ignored.
However, if I remove
@PathVariable
, then the code still works, although my IDE warns that 'URI template variable "isbn" is not defined'.http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/htmlsingle/spring-framework-reference.html#validation-mvc-triggering suggests this should work.
Affects: 3.1.1
Issue Links:
@PathVariable
,@RequestHeader
,@RequestParam
The text was updated successfully, but these errors were encountered: