Skip to content

Support for 'groups' in addition to @Valid for @MVC Controllers [SPR-6369] #11035

@spring-projects-issues

Description

@spring-projects-issues

Karthik Gurumurthy opened SPR-6369 and commented

I want to be able to specify the JSR303 validation group when specifying @Valid in @Controller-s.
I don't want the validation to be run against the default group every time.

I guess currently I can inject a javax.validation.Validator reference in the @Controller and handle this programmatically. Would be nice if this can be driven through an annotation as well.

But @Valid doesn't support a "group" attribute though.
What do you guys think?


Affects: 3.0 RC2

Issue Links:

2 votes, 2 watchers

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: duplicateA duplicate of another issuetype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions