{"action":"created","issue":{"url":"https://api.github.com/repos/hapijs/joi/issues/998","repository_url":"https://api.github.com/repos/hapijs/joi","labels_url":"https://api.github.com/repos/hapijs/joi/issues/998/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/joi/issues/998/comments","events_url":"https://api.github.com/repos/hapijs/joi/issues/998/events","html_url":"https://github.com/hapijs/joi/pull/998","id":181166957,"number":998,"title":"Add support for truthy/falsy boolean values","user":{"login":"WesTyler","id":12154939,"avatar_url":"https://avatars.githubusercontent.com/u/12154939?v=3","gravatar_id":"","url":"https://api.github.com/users/WesTyler","html_url":"https://github.com/WesTyler","followers_url":"https://api.github.com/users/WesTyler/followers","following_url":"https://api.github.com/users/WesTyler/following{/other_user}","gists_url":"https://api.github.com/users/WesTyler/gists{/gist_id}","starred_url":"https://api.github.com/users/WesTyler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WesTyler/subscriptions","organizations_url":"https://api.github.com/users/WesTyler/orgs","repos_url":"https://api.github.com/users/WesTyler/repos","events_url":"https://api.github.com/users/WesTyler/events{/privacy}","received_events_url":"https://api.github.com/users/WesTyler/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hapijs/joi/labels/breaking%20changes","name":"breaking changes","color":"eb6420"},{"url":"https://api.github.com/repos/hapijs/joi/labels/enhancement","name":"enhancement","color":"207de5"}],"state":"closed","locked":false,"assignee":{"login":"Marsup","id":796194,"avatar_url":"https://avatars.githubusercontent.com/u/796194?v=3","gravatar_id":"","url":"https://api.github.com/users/Marsup","html_url":"https://github.com/Marsup","followers_url":"https://api.github.com/users/Marsup/followers","following_url":"https://api.github.com/users/Marsup/following{/other_user}","gists_url":"https://api.github.com/users/Marsup/gists{/gist_id}","starred_url":"https://api.github.com/users/Marsup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marsup/subscriptions","organizations_url":"https://api.github.com/users/Marsup/orgs","repos_url":"https://api.github.com/users/Marsup/repos","events_url":"https://api.github.com/users/Marsup/events{/privacy}","received_events_url":"https://api.github.com/users/Marsup/received_events","type":"User","site_admin":false},"assignees":[{"login":"Marsup","id":796194,"avatar_url":"https://avatars.githubusercontent.com/u/796194?v=3","gravatar_id":"","url":"https://api.github.com/users/Marsup","html_url":"https://github.com/Marsup","followers_url":"https://api.github.com/users/Marsup/followers","following_url":"https://api.github.com/users/Marsup/following{/other_user}","gists_url":"https://api.github.com/users/Marsup/gists{/gist_id}","starred_url":"https://api.github.com/users/Marsup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marsup/subscriptions","organizations_url":"https://api.github.com/users/Marsup/orgs","repos_url":"https://api.github.com/users/Marsup/repos","events_url":"https://api.github.com/users/Marsup/events{/privacy}","received_events_url":"https://api.github.com/users/Marsup/received_events","type":"User","site_admin":false}],"milestone":null,"comments":17,"created_at":"2016-10-05T14:15:25Z","updated_at":"2016-10-22T12:09:15Z","closed_at":"2016-10-22T11:00:18Z","pull_request":{"url":"https://api.github.com/repos/hapijs/joi/pulls/998","html_url":"https://github.com/hapijs/joi/pull/998","diff_url":"https://github.com/hapijs/joi/pull/998.diff","patch_url":"https://github.com/hapijs/joi/pull/998.patch"},"body":"This commit resolves #991 by adding the following support:\r\n\r\n- Implements `Joi.boolean().truthy()` and `Joi.boolean().falsy()`\r\n  - Both methods accept either a string, or an array of strings.\r\n  - Both methods utilize `Hoek.assert` to ensure that the values passed are strings.\r\n  - Both methods have 100% test coverage.\r\n  - Both methods are documented in API.md."},"comment":{"url":"https://api.github.com/repos/hapijs/joi/issues/comments/255524795","html_url":"https://github.com/hapijs/joi/pull/998#issuecomment-255524795","issue_url":"https://api.github.com/repos/hapijs/joi/issues/998","id":255524795,"user":{"login":"Marsup","id":796194,"avatar_url":"https://avatars.githubusercontent.com/u/796194?v=3","gravatar_id":"","url":"https://api.github.com/users/Marsup","html_url":"https://github.com/Marsup","followers_url":"https://api.github.com/users/Marsup/followers","following_url":"https://api.github.com/users/Marsup/following{/other_user}","gists_url":"https://api.github.com/users/Marsup/gists{/gist_id}","starred_url":"https://api.github.com/users/Marsup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marsup/subscriptions","organizations_url":"https://api.github.com/users/Marsup/orgs","repos_url":"https://api.github.com/users/Marsup/repos","events_url":"https://api.github.com/users/Marsup/events{/privacy}","received_events_url":"https://api.github.com/users/Marsup/received_events","type":"User","site_admin":false},"created_at":"2016-10-22T12:09:15Z","updated_at":"2016-10-22T12:09:15Z","body":"LMK if you see anything shocking to you in my cleanup."}}
{"actor":{"display_login":"Marsup"}}