{"action":"created","issue":{"url":"https://api.github.com/repos/ctavan/express-validator/issues/170","labels_url":"https://api.github.com/repos/ctavan/express-validator/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/ctavan/express-validator/issues/170/comments","events_url":"https://api.github.com/repos/ctavan/express-validator/issues/170/events","html_url":"https://github.com/ctavan/express-validator/issues/170","id":105163264,"number":170,"title":"Code error in \"Validation by Schema\" section","user":{"login":"0q0","id":10086189,"avatar_url":"https://avatars.githubusercontent.com/u/10086189?v=3","gravatar_id":"","url":"https://api.github.com/users/0q0","html_url":"https://github.com/0q0","followers_url":"https://api.github.com/users/0q0/followers","following_url":"https://api.github.com/users/0q0/following{/other_user}","gists_url":"https://api.github.com/users/0q0/gists{/gist_id}","starred_url":"https://api.github.com/users/0q0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0q0/subscriptions","organizations_url":"https://api.github.com/users/0q0/orgs","repos_url":"https://api.github.com/users/0q0/repos","events_url":"https://api.github.com/users/0q0/events{/privacy}","received_events_url":"https://api.github.com/users/0q0/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ctavan/express-validator/labels/docs","name":"docs","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-07T07:42:41Z","updated_at":"2015-09-07T14:39:18Z","closed_at":"2015-09-07T14:39:17Z","body":"It looks like missing an open brace after \"isEmail:\" ?\r\n\r\n```javascript\r\nreq.checkBody({\r\n 'email': {\r\n  notEmpty: true,\r\n    isEmail:\r\n      errorMessage: 'Invalid Email'\r\n    }\r\n  },\r\n  ...\r\n});\r\n```\r\n\r\nAnd I have a question: if I don't want to pass any options (including 'errorMessage') to \"isEmail\" valdatior, does that should be set as \"isEmail: true\" in schema?"},"comment":{"url":"https://api.github.com/repos/ctavan/express-validator/issues/comments/138315686","html_url":"https://github.com/ctavan/express-validator/issues/170#issuecomment-138315686","issue_url":"https://api.github.com/repos/ctavan/express-validator/issues/170","id":138315686,"user":{"login":"0q0","id":10086189,"avatar_url":"https://avatars.githubusercontent.com/u/10086189?v=3","gravatar_id":"","url":"https://api.github.com/users/0q0","html_url":"https://github.com/0q0","followers_url":"https://api.github.com/users/0q0/followers","following_url":"https://api.github.com/users/0q0/following{/other_user}","gists_url":"https://api.github.com/users/0q0/gists{/gist_id}","starred_url":"https://api.github.com/users/0q0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0q0/subscriptions","organizations_url":"https://api.github.com/users/0q0/orgs","repos_url":"https://api.github.com/users/0q0/repos","events_url":"https://api.github.com/users/0q0/events{/privacy}","received_events_url":"https://api.github.com/users/0q0/received_events","type":"User","site_admin":false},"created_at":"2015-09-07T14:39:17Z","updated_at":"2015-09-07T14:39:17Z","body":"Thanks for the response :)"}}