We're updating the issue view to help you get more done. 

Support Validation Groups on @Valid annotation

Description

we want to use only annotations to validate objects using Validation Groups but I notice that @Valid don't support checks as attribute.

Example of needed behavior :

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 // Json object public class User { @NotBlank({ CreationChecks.class }) public String id; @NotBlank({ CreationChecks.class, UpdateChecks.class }) public String name; } // Jersey services @Path("/users/create") @POST public void createUser(@Valid({ CreationChecks.class } User user)) { // implementation here } @Path("/users/update") @POST public void createUser(@Valid({ UpdateChecks.class } User user)) { // implementation here }

Environment

None

Status

Assignee

Unassigned

Reporter

Sidi Amine BOUHAMIDI

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Priority

Major