{"action":"opened","issue":{"url":"https://api.github.com/repos/hapijs/joi/issues/1482","repository_url":"https://api.github.com/repos/hapijs/joi","labels_url":"https://api.github.com/repos/hapijs/joi/issues/1482/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/joi/issues/1482/comments","events_url":"https://api.github.com/repos/hapijs/joi/issues/1482/events","html_url":"https://github.com/hapijs/joi/issues/1482","id":316465236,"number":1482,"title":"Joi.boolean() -> true is ignored","user":{"login":"rols2015","id":16349586,"avatar_url":"https://avatars2.githubusercontent.com/u/16349586?v=4","gravatar_id":"","url":"https://api.github.com/users/rols2015","html_url":"https://github.com/rols2015","followers_url":"https://api.github.com/users/rols2015/followers","following_url":"https://api.github.com/users/rols2015/following{/other_user}","gists_url":"https://api.github.com/users/rols2015/gists{/gist_id}","starred_url":"https://api.github.com/users/rols2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rols2015/subscriptions","organizations_url":"https://api.github.com/users/rols2015/orgs","repos_url":"https://api.github.com/users/rols2015/repos","events_url":"https://api.github.com/users/rols2015/events{/privacy}","received_events_url":"https://api.github.com/users/rols2015/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-21T05:57:42Z","updated_at":"2018-04-21T05:57:42Z","closed_at":null,"author_association":"NONE","body":"I have a strange behavior for boolean validation. It looks like \"true\" is ignored. (it's OK for false)\r\n\r\nExample:\r\n{\"lastModified\": \"2017-02-18T08:35:57.000Z\",\r\n\"isDeleted\": true\r\n}\r\n\r\n\r\nisDeleted: Joi.boolean().required()\r\n\r\n\"reason\": {\r\n                            \"message\": \"Validation errors\",\r\n                            \"errors\": [\r\n                                {\r\n                                    \"message\": \"\\\"isDeleted\\\" is required\",\r\n                                    \"path\": [\r\n                                        \"isDeleted\"\r\n                                    ],\r\n                                    \"type\": \"any.required\",\r\n                                    \"context\": {\r\n                                        \"key\": \"isDeleted\",\r\n                                        \"label\": \"isDeleted\"\r\n                                    }\r\n                                }\r\n                            ]"}}
{"actor":{"display_login":"rols2015"}}