{"action":"created","issue":{"url":"https://api.github.com/repos/intridea/grape/issues/621","labels_url":"https://api.github.com/repos/intridea/grape/issues/621/labels{/name}","comments_url":"https://api.github.com/repos/intridea/grape/issues/621/comments","events_url":"https://api.github.com/repos/intridea/grape/issues/621/events","html_url":"https://github.com/intridea/grape/issues/621","id":31032855,"number":621,"title":"Allow Setting Custom Error Message with :requires ","user":{"login":"jackdesert","id":791315,"avatar_url":"https://avatars.githubusercontent.com/u/791315?v=3","gravatar_id":"","url":"https://api.github.com/users/jackdesert","html_url":"https://github.com/jackdesert","followers_url":"https://api.github.com/users/jackdesert/followers","following_url":"https://api.github.com/users/jackdesert/following{/other_user}","gists_url":"https://api.github.com/users/jackdesert/gists{/gist_id}","starred_url":"https://api.github.com/users/jackdesert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackdesert/subscriptions","organizations_url":"https://api.github.com/users/jackdesert/orgs","repos_url":"https://api.github.com/users/jackdesert/repos","events_url":"https://api.github.com/users/jackdesert/events{/privacy}","received_events_url":"https://api.github.com/users/jackdesert/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/intridea/grape/labels/feature%20request","name":"feature request","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-04-07T23:58:06Z","updated_at":"2015-05-14T13:02:34Z","closed_at":null,"body":"Would you mind allowing a custom error message to be set through the 'requires' method? For example, I would like to set a custom error message like this:\r\n\r\n    params do\r\n        requires :name, regexp: /^[a-z]+$/, message: \"Name may only contain letters a-z\"\r\n    end\r\n\r\nBut this doesn't work. And creating a custom validator just to set a custom error message seems like a lot of overhead.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/intridea/grape/issues/comments/102029316","html_url":"https://github.com/intridea/grape/issues/621#issuecomment-102029316","issue_url":"https://api.github.com/repos/intridea/grape/issues/621","id":102029316,"user":{"login":"MSadir","id":6205202,"avatar_url":"https://avatars.githubusercontent.com/u/6205202?v=3","gravatar_id":"","url":"https://api.github.com/users/MSadir","html_url":"https://github.com/MSadir","followers_url":"https://api.github.com/users/MSadir/followers","following_url":"https://api.github.com/users/MSadir/following{/other_user}","gists_url":"https://api.github.com/users/MSadir/gists{/gist_id}","starred_url":"https://api.github.com/users/MSadir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSadir/subscriptions","organizations_url":"https://api.github.com/users/MSadir/orgs","repos_url":"https://api.github.com/users/MSadir/repos","events_url":"https://api.github.com/users/MSadir/events{/privacy}","received_events_url":"https://api.github.com/users/MSadir/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T13:02:34Z","updated_at":"2015-05-14T13:02:34Z","body":"Hi, has anyone taken this on?"}}