jakartaee / jakartaee/validation-spec
Add optional "groups" attribute to @Valid
- Dominant language
- Java
- Stars
- 23
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
At the moment, when using @Valid annotation, there is no way to specify which groups must be validated. Inspired by the [Springs @Validated annotation](https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/validation/annotation/Validated.html), my suggestion is to add an optional attribute to @Valid annotation, "groups", where we can define which groups should be validated.
Contributor guide
Research direction
Start with the @Valid annotation definition in the validation specification and compare its semantics with the Spring @Validated documentation linked in the issue. Determine how an optional groups attribute would fit the existing validation-group behavior, then clarify the intended design and update the specification once the compatibility criteria are agreed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100