Skip to content

feat: add conditional null/require validators#83

Merged
dimahc merged 2 commits into
mainfrom
82-enhancement-add-conditional-validators-to-requirenull-a-field-when-another-attribute-matches-a-condition
Jul 13, 2026
Merged

feat: add conditional null/require validators#83
dimahc merged 2 commits into
mainfrom
82-enhancement-add-conditional-validators-to-requirenull-a-field-when-another-attribute-matches-a-condition

Conversation

@dimahc

@dimahc dimahc commented Jul 9, 2026

Copy link
Copy Markdown
Member

Add validators that force an attribute to be null or required when another attribute matches a condition, plus length-based variants for collection validators.

@dimahc
dimahc requested a review from a team as a code owner July 9, 2026 13:28
@github-actions github-actions Bot added feature New feature size/XL Extra large PR labels Jul 9, 2026
@dimahc
dimahc force-pushed the 82-enhancement-add-conditional-validators-to-requirenull-a-field-when-another-attribute-matches-a-condition branch from d2f4471 to 26595c1 Compare July 10, 2026 11:02

@azrod azrod left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK mais il faut ajouter le changelog

dimahc added 2 commits July 13, 2026 14:34
…ches

Implement a new set of conditional validators across multiple types
(bool, float64, int32, int64, list, map, object, set, and string) that
allow a field to be required as null when another attribute matches
a specific condition. This includes internal logic and corresponding
unit tests for each validator type.
Add entry to the changelog documenting the addition of new conditional
validators that allow forcing attributes to null based on matching
conditions.
@dimahc
dimahc force-pushed the 82-enhancement-add-conditional-validators-to-requirenull-a-field-when-another-attribute-matches-a-condition branch from 26595c1 to e2ced19 Compare July 13, 2026 12:34
@dimahc
dimahc merged commit e3191db into main Jul 13, 2026
7 of 11 checks passed
@dimahc
dimahc deleted the 82-enhancement-add-conditional-validators-to-requirenull-a-field-when-another-attribute-matches-a-condition branch July 13, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature size/XL Extra large PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] Add conditional validators to require/null a field when another attribute matches a condition

2 participants