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

AtLeastOneOfValidator properly treats nested params in errors #1911

Merged
merged 1 commit into from
Oct 2, 2019
Merged

AtLeastOneOfValidator properly treats nested params in errors #1911

merged 1 commit into from
Oct 2, 2019

Conversation

dnesteryuk
Copy link
Member

Unlike other validators Grape::Valiations::AtLeastOneOfValidator didn't wrap params into a scope (namespace) for errors when params were nested.

Closes #1849

Unlike other validators `Grape::Valiations::AtLeastOneOfValidator` didn't wrap params
into a scope (namespace) for errors when params were nested.
@@ -17,7 +18,7 @@

#### Features

* [#1888](https://github.com/ruby-grape/grape/pull/1888): Makes the `configuration` hash widly available - [@myxoh](https://github.com/myxoh).
* [#1888](https://github.com/ruby-grape/grape/pull/1888): Makes the `configuration` hash widely available - [@myxoh](https://github.com/myxoh).
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for this.

@dblock dblock merged commit ccd8d15 into ruby-grape:master Oct 2, 2019
@dblock
Copy link
Member

dblock commented Oct 2, 2019

👍 merged

@dnesteryuk dnesteryuk deleted the bugfix/at_least_one_of_validator branch October 2, 2019 15:01
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.

AtLeastOneOfValidator doesn't provide the full name of attribute in errors
2 participants