{"action":"opened","issue":{"url":"https://api.github.com/repos/Adonis-Js/indicative/issues/27","labels_url":"https://api.github.com/repos/Adonis-Js/indicative/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/Adonis-Js/indicative/issues/27/comments","events_url":"https://api.github.com/repos/Adonis-Js/indicative/issues/27/events","html_url":"https://github.com/Adonis-Js/indicative/issues/27","id":113257149,"number":27,"title":"required rule for integer=0","user":{"login":"amir-s","id":905963,"avatar_url":"https://avatars.githubusercontent.com/u/905963?v=3","gravatar_id":"","url":"https://api.github.com/users/amir-s","html_url":"https://github.com/amir-s","followers_url":"https://api.github.com/users/amir-s/followers","following_url":"https://api.github.com/users/amir-s/following{/other_user}","gists_url":"https://api.github.com/users/amir-s/gists{/gist_id}","starred_url":"https://api.github.com/users/amir-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amir-s/subscriptions","organizations_url":"https://api.github.com/users/amir-s/orgs","repos_url":"https://api.github.com/users/amir-s/repos","events_url":"https://api.github.com/users/amir-s/events{/privacy}","received_events_url":"https://api.github.com/users/amir-s/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-25T21:57:11Z","updated_at":"2015-10-25T21:57:11Z","closed_at":null,"body":"Hi,\r\n\r\nAssume I use the following rule for the `amount` property: `required|integer`.\r\n\r\n`amount` is integer and it is ok to be zero, but if set to zero, it is not going to be validated by `required` rule.\r\n\r\nindicative utilized `is.truthy`, but `is.truthy` explicitly rejects the number values equal to zero:\r\n\r\n    is.truthy = function(value) {\r\n        return is.existy(value) && value !== false && is.not.nan(value) && value !== \"\" && value !== 0;\r\n    };\r\n\r\n"}}