jakartaee / jakartaee/validation-spec

Add "provider" attribute to @GroupSequence inspired by the Hibernate's @GroupSequenceProvider

Open
#268 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
23
Forks
22
PR merge metrics
No merged PRs in 30d

Description

At the moment there is no mechanism to define the group sequence validation at runtime. Hibernate Validator has its own mechanism, through [@GroupSequenceProvider](https://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_single/#_groupsequenceprovider) annotation and DefaultGroupSequenceProvider interface.

Inspired by the Hibernate's solution, my suggestion is to add the attribute "provider" to the @GroupSequence annotation which expects a reference to a class that implements the interface "GroupSequenceProvider".

More info: [Hibernate Validator docs](https://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_single/#_groupsequenceprovider).

Contributor guide

Open the contributing guide

Research direction

Start by reading the @GroupSequence annotation and the linked Hibernate Validator documentation for @GroupSequenceProvider and DefaultGroupSequenceProvider. Determine how a provider attribute and GroupSequenceProvider interface would fit the validation specification, including the expected runtime behavior. Done means the proposed API and its semantics are specified consistently.

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
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.