-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
excluded_with
doesn't work with structures
#906
Labels
Comments
petitout
changed the title
Feb 28, 2022
exclude_with
doesn't work with structuresexcluded_with
doesn't work with structures
Also v curious if there's an answer to this one. @deankarn could you shed any light? |
This seems like a bug, I've tested this one too |
Is there any change in this question |
Same here, and I didn't find any workaround :/ |
1 task
1 task
1 task
deankarn
pushed a commit
that referenced
this issue
Aug 6, 2023
## Fixes #367, #906 **Make sure that you've checked the boxes below before you submit PR:** - [x] Tests exist or have been written that cover this particular change. A test has been added for custom tags, however I was not brave enough to actually update the tests for all required/excluded tag variants before getting an initial feedback, but I'm willing to do so if this ever gets any further. Same goes for documentation. The implementation supports both struct and struct pointer validations for custom tags and all required/excluded tag variants. Struct validity is evaluated first and fields are evaluated only if the struct is valid, though I'm not sure if this is the desired behavior. @go-playground/validator-maintainers
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Package version eg. v9, v10:
v10
Issue, Question or Enhancement:
excluded_with
doesn't work with structuresCode sample, to showcase or reproduce:
google playground : https://go.dev/play/p/krYBBvE4zWZ
The text was updated successfully, but these errors were encountered: