{"action":"created","issue":{"url":"https://api.github.com/repos/cezarlz/boss-validator/issues/3","repository_url":"https://api.github.com/repos/cezarlz/boss-validator","labels_url":"https://api.github.com/repos/cezarlz/boss-validator/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/cezarlz/boss-validator/issues/3/comments","events_url":"https://api.github.com/repos/cezarlz/boss-validator/issues/3/events","html_url":"https://github.com/cezarlz/boss-validator/issues/3","id":179938279,"number":3,"title":"Create more useful validators","user":{"login":"cezarlz","id":954889,"avatar_url":"https://avatars.githubusercontent.com/u/954889?v=3","gravatar_id":"","url":"https://api.github.com/users/cezarlz","html_url":"https://github.com/cezarlz","followers_url":"https://api.github.com/users/cezarlz/followers","following_url":"https://api.github.com/users/cezarlz/following{/other_user}","gists_url":"https://api.github.com/users/cezarlz/gists{/gist_id}","starred_url":"https://api.github.com/users/cezarlz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cezarlz/subscriptions","organizations_url":"https://api.github.com/users/cezarlz/orgs","repos_url":"https://api.github.com/users/cezarlz/repos","events_url":"https://api.github.com/users/cezarlz/events{/privacy}","received_events_url":"https://api.github.com/users/cezarlz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cezarlz/boss-validator/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/cezarlz/boss-validator/labels/hacktoberfest","name":"hacktoberfest","color":"fbca04"},{"url":"https://api.github.com/repos/cezarlz/boss-validator/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-29T02:32:17Z","updated_at":"2016-09-30T16:56:17Z","closed_at":null,"body":"Hi guys, today the `boss-validator` has 27 valid validators. Day to day, many developers need to solve many issues on its jobs. That's why the purpose of this lib is help the most in their everyday situations.\r\n\r\nI created this lib for create custom validators easily. So, what's is your idea?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/cezarlz/boss-validator/issues/comments/250796465","html_url":"https://github.com/cezarlz/boss-validator/issues/3#issuecomment-250796465","issue_url":"https://api.github.com/repos/cezarlz/boss-validator/issues/3","id":250796465,"user":{"login":"hkwu","id":9387503,"avatar_url":"https://avatars.githubusercontent.com/u/9387503?v=3","gravatar_id":"","url":"https://api.github.com/users/hkwu","html_url":"https://github.com/hkwu","followers_url":"https://api.github.com/users/hkwu/followers","following_url":"https://api.github.com/users/hkwu/following{/other_user}","gists_url":"https://api.github.com/users/hkwu/gists{/gist_id}","starred_url":"https://api.github.com/users/hkwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkwu/subscriptions","organizations_url":"https://api.github.com/users/hkwu/orgs","repos_url":"https://api.github.com/users/hkwu/repos","events_url":"https://api.github.com/users/hkwu/events{/privacy}","received_events_url":"https://api.github.com/users/hkwu/received_events","type":"User","site_admin":false},"created_at":"2016-09-30T16:56:17Z","updated_at":"2016-09-30T16:56:17Z","body":"A simple one would be `required_if.\r\n\r\n```js\r\nconst rules = {\r\n  foo: {},\r\n  bar: {\r\n    required_if: 'foo',\r\n  },\r\n};\r\n```\r\n\r\nThe validator then checks if a value was provided for `foo`. If so, a value must also exist for `bar`."}}
{"actor":{"display_login":"hkwu"}}