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

allow_blank boolean fix #1012

Merged
merged 1 commit into from
May 7, 2015
Merged

allow_blank boolean fix #1012

merged 1 commit into from
May 7, 2015

Conversation

mfunaro
Copy link
Contributor

@mfunaro mfunaro commented May 5, 2015

Fix allow_blank validator such that validation will not fail when a value of false is sent in a boolean param and allow_blank is set to false.

@@ -20,7 +20,7 @@
* [#942](https://github.com/intridea/grape/pull/942): Fixed forced presence for optional params when based on a reused entity that was also required in another context - [@croeck](https://github.com/croeck).
* [#1001](https://github.com/intridea/grape/pull/1001): Fixed calling endpoint with specified format with format in its path - [@hodak](https://github.com/hodak).
* [#1005](https://github.com/intridea/grape/pull/1005): Fixed the Grape::Middleware::Globals - [@urkle](https://github.com/urkle).

* [#1012](https://github.com/intridea/grape/pull/1012): Fix allow_blank validator such that validation will not fail when a value of false is sent in a boolean param and allow_blank is set to false. - [@mfunaro](https://github.com/mfunaro).
Copy link
Member

Choose a reason for hiding this comment

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

There's "fix" instead of "fixed" and an extra period, make sure this looks like everything else. Maybe shorter?

[#1012](https://github.com/intridea/grape/pull/1012): Fixed `allow_blank: false` with a Boolean value of `false` - [@mfunaro](https://github.com/mfunaro).

@dblock
Copy link
Member

dblock commented May 6, 2015

Very good, see my comments above, squash the commits, too. Thanks.

…alue of false is sent in a boolean param and allow_blank is set to false.
@mfunaro
Copy link
Contributor Author

mfunaro commented May 6, 2015

All set. Thanks for the feedback.

Edit: Not sure what went wrong in the build. bundle exec rake runs clean and appraisal rake spec runs with a pending warning which says it's expected

dblock added a commit that referenced this pull request May 7, 2015
@dblock dblock merged commit bca166a into ruby-grape:master May 7, 2015
@dblock
Copy link
Member

dblock commented May 7, 2015

Merged.

@mfunaro mfunaro deleted the allow-blank-boolean-fix branch May 11, 2015 21:17
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.

None yet

2 participants