{"action":"created","issue":{"url":"https://api.github.com/repos/ruby-grape/grape/issues/1551","repository_url":"https://api.github.com/repos/ruby-grape/grape","labels_url":"https://api.github.com/repos/ruby-grape/grape/issues/1551/labels{/name}","comments_url":"https://api.github.com/repos/ruby-grape/grape/issues/1551/comments","events_url":"https://api.github.com/repos/ruby-grape/grape/issues/1551/events","html_url":"https://github.com/ruby-grape/grape/issues/1551","id":198992794,"number":1551,"title":"Boolean type not working as expected","user":{"login":"Crystark","id":259699,"avatar_url":"https://avatars2.githubusercontent.com/u/259699?v=3","gravatar_id":"","url":"https://api.github.com/users/Crystark","html_url":"https://github.com/Crystark","followers_url":"https://api.github.com/users/Crystark/followers","following_url":"https://api.github.com/users/Crystark/following{/other_user}","gists_url":"https://api.github.com/users/Crystark/gists{/gist_id}","starred_url":"https://api.github.com/users/Crystark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crystark/subscriptions","organizations_url":"https://api.github.com/users/Crystark/orgs","repos_url":"https://api.github.com/users/Crystark/repos","events_url":"https://api.github.com/users/Crystark/events{/privacy}","received_events_url":"https://api.github.com/users/Crystark/received_events","type":"User","site_admin":false},"labels":[{"id":31357394,"url":"https://api.github.com/repos/ruby-grape/grape/labels/bug?","name":"bug?","color":"d7e102","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-05T16:10:15Z","updated_at":"2017-03-08T17:14:13Z","closed_at":null,"body":"Hi,\r\n\r\nI'm having trouble using the Boolean type with proper boolean values.\r\n\r\nWhat I initially wanted to do:\r\n```ruby\r\noptional :active, type: Boolean, default: true\r\n```\r\n\r\nAlways returns `active is invalid` should I send `{  \"active\": true }` or `{  \"active\": false }`\r\n\r\nWhat i had to do is actually add `coerce_with` using the identity lambda...\r\n\r\n```ruby\r\noptional :active, type: Boolean, default: true, coerce_with: ->(v) { v }\r\n```\r\n\r\nDid I miss something here ?\r\nI'm using version `0.18`"},"comment":{"url":"https://api.github.com/repos/ruby-grape/grape/issues/comments/285104573","html_url":"https://github.com/ruby-grape/grape/issues/1551#issuecomment-285104573","issue_url":"https://api.github.com/repos/ruby-grape/grape/issues/1551","id":285104573,"user":{"login":"LeFnord","id":120214,"avatar_url":"https://avatars0.githubusercontent.com/u/120214?v=3","gravatar_id":"","url":"https://api.github.com/users/LeFnord","html_url":"https://github.com/LeFnord","followers_url":"https://api.github.com/users/LeFnord/followers","following_url":"https://api.github.com/users/LeFnord/following{/other_user}","gists_url":"https://api.github.com/users/LeFnord/gists{/gist_id}","starred_url":"https://api.github.com/users/LeFnord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeFnord/subscriptions","organizations_url":"https://api.github.com/users/LeFnord/orgs","repos_url":"https://api.github.com/users/LeFnord/repos","events_url":"https://api.github.com/users/LeFnord/events{/privacy}","received_events_url":"https://api.github.com/users/LeFnord/received_events","type":"User","site_admin":false},"created_at":"2017-03-08T17:14:13Z","updated_at":"2017-03-08T17:14:13Z","body":"try to use `Virtus::Attribute::Boolean` instead, see: https://github.com/ruby-grape/grape/issues/1115\r\n"}}
{"actor":{"display_login":"LeFnord"}}