Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fields with not null constraint annotations are considered optional if groups attribute is set #4797

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

T3rm1
Copy link

@T3rm1 T3rm1 commented Nov 22, 2024

This PR keeps properties as optional when they are annotated with one of the not-null annoatations and have a value in their groups attribute.
The groups attribute lets you define under which circumstances the annotation is evaluated. For NotNull this means, the field can be optional in some cases and mandatory in other cases.
Since we don't know what should apply, the parameter should be considered optional.

@frantuma It would greatly help me if we could merge this asap. I tried a few workarounds but none are fully working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant