-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Boolean type not working as expected #1551
Comments
|
I just experienced the same problem when using optional :flag, coerce: Boolean Then it works with any value that can be coerced into a |
try to use |
We alias |
This is commit adds additional specs to make sure Boolean type is indeed working as expected. ruby-grape#1551
This is commit adds additional specs to make sure Boolean type is indeed working as expected. ruby-grape#1551
Closing via more tests in #1650. |
Hi,
I'm having trouble using the Boolean type with proper boolean values.
What I initially wanted to do:
Always returns
active is invalid
should I send{ "active": true }
or{ "active": false }
What i had to do is actually add
coerce_with
using the identity lambda...Did I miss something here ?
I'm using version
0.18
The text was updated successfully, but these errors were encountered: