We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v10.4.0
Mandatory omit a field if some other field is present in the struct already.
For example-
type A struct{ B string C string }
C should definitely not be there if B equals something like "abcd"
The text was updated successfully, but these errors were encountered:
The excluded_if tag is needed, as opposed to required_if.
Sorry, something went wrong.
Hello, is excluded_if implemented at all? I am unable to find it in the documentation nor in the source.
excluded_if
I've added a PR against with #847.
No branches or pull requests
Package version eg. v9, v10:
v10.4.0
Issue, Question or Enhancement:
Mandatory omit a field if some other field is present in the struct already.
Code sample, to showcase or reproduce:
For example-
C should definitely not be there if B equals something like "abcd"
The text was updated successfully, but these errors were encountered: