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

Store message_key on validation exception #1227

Closed
wants to merge 1 commit into from

Conversation

stjhimy
Copy link
Contributor

@stjhimy stjhimy commented Dec 10, 2015

Also add missing spec for validation exception.

@stjhimy
Copy link
Contributor Author

stjhimy commented Dec 10, 2015

huh, it might be duplicated from #1210 @dblock
should I remove the message_key commit?

@dblock
Copy link
Member

dblock commented Dec 10, 2015

Yes but I am glad this one has tests. Can you please squash the commits?

@@ -3,6 +3,7 @@

* [#1216](https://github.com/ruby-grape/grape/pull/1142): Fix JSON error response when calling `error!` with non-Strings - [@jrforrest](https://github.com/jrforrest).
* [#1225](https://github.com/ruby-grape/grape/pull/1225): Fix `given` with nested params not returning correct declared params - [@JanStevens](https://github.com/JanStevens).
* [#1227](https://github.com/ruby-grape/grape/pull/1227): Store message_key on validation exception - [@stjhimy](https://github.com/sthimy).
Copy link
Member

Choose a reason for hiding this comment

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

Quote message_key and maybe make the class specific, so Grape::Exceptions::Validation? NBD

@stjhimy
Copy link
Contributor Author

stjhimy commented Dec 11, 2015

@dblock done.

@dblock
Copy link
Member

dblock commented Dec 11, 2015

Merged via c54cd8f.

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