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

Validate array params against values #824

Closed
wants to merge 2 commits into from

Conversation

dnd
Copy link
Contributor

@dnd dnd commented Nov 24, 2014

This PR is an attempt to address issue #823. The code ensures that the acceptable values meet coercion of the array type, and then validates that passed in params are contained in the acceptable values list.

@dm1try
Copy link
Member

dm1try commented Nov 25, 2014

@dnd, looks good. Please fix rubocop warnings and update CHANGELOG/README, thanks!

@dnd
Copy link
Contributor Author

dnd commented Nov 25, 2014

@dm1try, it should be good now. I just added an example in the README without changing any wording since this change makes something work that was probably expected to work. Let me know if you want to call the change out more specifically.

@dnd
Copy link
Contributor Author

dnd commented Nov 25, 2014

@dm1try, I'm pretty sure Travis failing isn't my fault. The issues look to be bundler timeouts. Can you rerun it?

@dm1try
Copy link
Member

dm1try commented Nov 25, 2014

@dnd thanks! I can't rerun it(but I'm pretty sure too it's a Travis problem)

@dblock take a look, please!

@dblock
Copy link
Member

dblock commented Nov 26, 2014

Merged via 0df3bda. Travis is on the fritz with some of the configs, ...

@dblock dblock closed this Nov 26, 2014
@dnd
Copy link
Contributor Author

dnd commented Nov 26, 2014

Thanks. When is the next release of Grape planned?

@dblock
Copy link
Member

dblock commented Nov 26, 2014

I would really like a fix for #811 first, because that's a pretty major regression IMO.

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