{"action":"opened","issue":{"url":"https://api.github.com/repos/75team/thinkjs/issues/317","repository_url":"https://api.github.com/repos/75team/thinkjs","labels_url":"https://api.github.com/repos/75team/thinkjs/issues/317/labels{/name}","comments_url":"https://api.github.com/repos/75team/thinkjs/issues/317/comments","events_url":"https://api.github.com/repos/75team/thinkjs/issues/317/events","html_url":"https://github.com/75team/thinkjs/issues/317","id":148234869,"number":317,"title":"logic校验 ‘boolean|required’ 时参数值为0 false 无法通过验证","user":{"login":"microchang","id":5638390,"avatar_url":"https://avatars.githubusercontent.com/u/5638390?v=3","gravatar_id":"","url":"https://api.github.com/users/microchang","html_url":"https://github.com/microchang","followers_url":"https://api.github.com/users/microchang/followers","following_url":"https://api.github.com/users/microchang/following{/other_user}","gists_url":"https://api.github.com/users/microchang/gists{/gist_id}","starred_url":"https://api.github.com/users/microchang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/microchang/subscriptions","organizations_url":"https://api.github.com/users/microchang/orgs","repos_url":"https://api.github.com/users/microchang/repos","events_url":"https://api.github.com/users/microchang/events{/privacy}","received_events_url":"https://api.github.com/users/microchang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-14T02:39:54Z","updated_at":"2016-04-14T02:39:54Z","closed_at":null,"body":"## DESC\r\n\r\n如题，假如我logic代码如下： \r\nthis.rules = {\r\nid: \"required|boolean\"\r\n}\r\n\r\n那么当我id传0,false,或者其他有类似意义的值时，会返回参数验证错误。\r\n\r\n## ENV\r\n\r\nPlatform: ubuntu 14.04 LTS\r\n\r\nNode.js Version: 5.10.1\r\n\r\nThinkJS Version: 2.2.1\r\n"}}