jenyaatnow / jenyaatnow/validator4j
Add validation groups support
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
We should provide the ability to apply different validation rules depending on particular validation groups. To achieve this we should do the following:
- extend
ValidatableReference#validateandValidatableCollection#validateEachwith argumentClass<?>... groups- this way we'll configure each validation rules set to be used with particular validation groups - extend
ValidatableObject#validatewith argumentClass<?>... groups- this way we'll trigger validation according to passed validation groups
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating ValidatableReference#validate, ValidatableCollection#validateEach, and ValidatableObject#validate, then trace how validation rules are selected and invoked. Define how the Class<?>... groups arguments propagate through these APIs and verify that each validation set runs only for its selected groups. The issue names no tests, so inspect existing validation tests or generated-code coverage before adding focused cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100