jakartaee / jakartaee/validation

Allows validation by `groups` on `@Valid`

Open
#276 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
163
Forks
67
Avg merge
3d 15h
Merged PRs (30d)
2

Description

Like [Spring Framework's `@Validated` annotation](https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/validation/annotation/Validated.html) but in standard in Jakarta Validation Spec.

We currently cannot define validation groups on the `@Validated` annotation.

This should be possible, as with all other constraints annotations.

```
@Valid(groups = {CreationGroup.class, ModificationGroup.class})
```

Contributor guide

Open the contributing guide

Research direction

Start by comparing the standard Jakarta Validation @Valid annotation with Spring Framework's @Validated behavior and resolve which annotation this issue targets. Confirm the specification and API changes required for validation groups, then define completion as standard group declarations being supported and covered by the relevant project tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.