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

Improve collection of validation errors #462

Merged
merged 4 commits into from
Aug 20, 2013
Merged

Improve collection of validation errors #462

merged 4 commits into from
Aug 20, 2013

Conversation

stevschmid
Copy link
Contributor

As mentioned in PR #433 I had a more polished version of the PR but was not yet able to push it. I was a little bit surprised to see the merge that quickly. So I hope there is still some time to ameliorate the merge with this PR.

Notable changes:

  • rename Grape::Exceptions::Validations to Grape::Exceptions::ValidationErrors for clarity
  • make it necessary to supply :param when raising Grape::Exception::Validation�
  • group validation errors by parameter

rename Grape::Exceptions::Validations to Grape::Exceptions::ValidationError for clarity
make it necessary to supply :param when raising Grape::Exception::Validation�
use rails as inspiration for the structure of the validation errors
@pboling
Copy link

pboling commented Aug 20, 2013

👍

@dblock
Copy link
Member

dblock commented Aug 20, 2013

We can keep making improvements, thank you. Can you merge from upstream please?

Steven Schmid added 3 commits August 20, 2013 17:58
@stevschmid
Copy link
Contributor Author

Done.

@dblock
Copy link
Member

dblock commented Aug 20, 2013

Very good, merging.

dblock added a commit that referenced this pull request Aug 20, 2013
Improve collection of validation errors
@dblock dblock merged commit f4c65e9 into ruby-grape:master Aug 20, 2013
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.

3 participants