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

Adding headers to validation errors #1063

Merged
merged 1 commit into from
Jul 13, 2015

Conversation

yairgo
Copy link
Contributor

@yairgo yairgo commented Jul 10, 2015

Adding headers to validation errors instance to be used in error response.
#1062

@@ -3,6 +3,9 @@ Next Release

#### Features

* [#1062](https://github.com/intridea/grape/issues/1062): Added headers
Copy link
Member

Choose a reason for hiding this comment

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

Put this on 1 line and match the syntax from below (no period before -, quote ValidationErrors).

Maybe we can phrase this better, "Fix: validation errors will include headers set by header"?

@dblock
Copy link
Member

dblock commented Jul 11, 2015

I think this makes sense, and the fact that headers aren't included is a bug, can you amend the CHANGELOG per above please?

@yairgo
Copy link
Contributor Author

yairgo commented Jul 13, 2015

Sorry I don't know how the changelog was multiple lines. Let me know if it needs any more changes.

@dblock
Copy link
Member

dblock commented Jul 13, 2015

I just want these squashed ;) Thanks!

@yairgo yairgo force-pushed the pass_headers_to_validation_errors branch from 35dde86 to f95445a Compare July 13, 2015 18:02
@yairgo
Copy link
Contributor Author

yairgo commented Jul 13, 2015

Squashed

dblock added a commit that referenced this pull request Jul 13, 2015
@dblock dblock merged commit 85ed0ff into ruby-grape:master Jul 13, 2015
@dblock
Copy link
Member

dblock commented Jul 13, 2015

Merged

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