-
Notifications
You must be signed in to change notification settings - Fork 71
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
enhancement request: require a or b but not both #90
Comments
This comment has been minimized.
This comment has been minimized.
After toying around, I found this approach better:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There doesn't seem to be a way to require A or B, but not A&B.
This could be achieved with
RequireEmptyIfPresent
/RequireEmptyIfMissing
, which would be the same logic asRequireIfMissing
- but tests for an empty value.The text was updated successfully, but these errors were encountered: