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

Update validation message for one_of #5130

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

alexcwatt
Copy link
Contributor

@alexcwatt alexcwatt commented Oct 21, 2024

This PR updates the error message when a one_of validation is not satisfied to be more explicit about what the issue is.

Before: "{field_name} has the wrong arguments"
After: "{field_name} must include exactly one of the following arguments: a, b."

Note: PR seems to be failing due to unreliable tests. Example 1, Example 2

@alexcwatt alexcwatt marked this pull request as ready for review October 21, 2024 19:36
@alexcwatt alexcwatt force-pushed the one-of-validation-error branch 3 times, most recently from a4a1db2 to fa62d0c Compare October 21, 2024 20:15
Copy link
Owner

@rmosolgo rmosolgo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 I don't have plans to modify the commit history before merging -- did you want to?

@alexcwatt
Copy link
Contributor Author

@rmosolgo great! I just squashed the first and last commit together and kept the middle one. You can see in GitHub UI that there were no changes in final state of this branch with the force-push.

@rmosolgo rmosolgo added this to the 2.3.18 milestone Oct 24, 2024
@rmosolgo rmosolgo merged commit 2ae5393 into rmosolgo:master Oct 24, 2024
14 of 15 checks passed
@rmosolgo rmosolgo modified the milestones: 2.3.18, 2.3.19 Oct 24, 2024
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.

2 participants