-
Notifications
You must be signed in to change notification settings - Fork 1.4k
excluded_unless bug fix
#1307
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
base: master
Are you sure you want to change the base?
excluded_unless bug fix
#1307
Conversation
6c54727 to
ca3636f
Compare
|
any update for this issue? |
Looks like we have a conflict. I can update the PR but had no momentum on it when I first posted. |
|
Please resolve the conflicts, and I’ll proceed with the approval |
65df2bb to
0066799
Compare
|
@nodivbyzero thank you. We should be ready. |
validator_test.go
Outdated
| {"ABCDDE1-", "bic", false}, // hyphen in location | ||
| {"ABCDDE1_", "bic", false}, // underscore in location | ||
| {"ABCDDE١٢", "bic", false}, // non-ASCII digits in location | ||
| {"DEUTDEFF", "bic", true}, // 8-char classic (Germany) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this change related to the excluded_unless?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, moving back to command line, IDEA driving me nuts with go fmt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting and history cleaned up
e9fd119 to
1798595
Compare
…site equivilant result to required_unless
1798595 to
2cb9f1d
Compare
Fixes Or Enhances
The verbiage in the documentation for both
excluded_unlessandrequired_unlessis very similar. One would expect the opposite behavior for each when using multiple values of the same field that is being validated against.For example:
This fails in all 3 cases in sample code
However, the equivilant opposite of this only fails in TestC
resolves #1306