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

Fix inconsistent validation #1510

Closed

Conversation

dgasper
Copy link
Contributor

@dgasper dgasper commented Oct 12, 2016

Fixes #1508

@dblock
Copy link
Member

dblock commented Oct 13, 2016

So looks like that code was there intentionally, but without specs. I think it's worth mentioning the behavior change in UPGRADING, please?

@@ -1,6 +1,21 @@
Upgrading Grape
===============

### Upgrading to >= 0.18.0
Copy link
Member

Choose a reason for hiding this comment

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

This is incorrect, we have already shipped 0.18.0, so this should be 0.19.0.

Copy link
Member

Choose a reason for hiding this comment

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

Maybe 0.18.1, I am not sure whether this is major/minor release worthy.

@dblock
Copy link
Member

dblock commented Oct 14, 2016

If you really want to be nice, squash your commits after you've fixed the version in UPGRADING. I'll merge.

Add spec for multiple params per requires

fix validation inconsistency

update changelog

update UPGRADING.md

#### Changed endpoint params validation

Grape now returns validation errors for all params when multiple params are passed to a requires.
Copy link
Member

@dblock dblock Oct 21, 2016

Choose a reason for hiding this comment

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

I would add "correctly" otherwise it seems like this is some other kind of behavior change.

@dblock
Copy link
Member

dblock commented Oct 21, 2016

Sorry just seeing this. Can you please rebase? I'll merge. Appreciate it.

@dblock
Copy link
Member

dblock commented Oct 21, 2016

I'm being lazy. Merged via 813925e.

@dblock dblock closed this Oct 21, 2016
@dgasper
Copy link
Contributor Author

dgasper commented Oct 21, 2016

Oh, sorry. Force push doesn't result in a notification. Glad I could contribute. Thanks!

@dblock
Copy link
Member

dblock commented Oct 23, 2016

Thanks for your excellent work @dgasper!

@dgasper dgasper deleted the fix-inconsistent-validation branch October 25, 2016 07:16
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