{"action":"opened","issue":{"url":"https://api.github.com/repos/sdispater/cleo/issues/36","labels_url":"https://api.github.com/repos/sdispater/cleo/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/sdispater/cleo/issues/36/comments","events_url":"https://api.github.com/repos/sdispater/cleo/issues/36/events","html_url":"https://github.com/sdispater/cleo/issues/36","id":94025425,"number":36,"title":"[Feature Request] Convert arguments and options using validators","user":{"login":"Kilte","id":5552990,"avatar_url":"https://avatars.githubusercontent.com/u/5552990?v=3","gravatar_id":"","url":"https://api.github.com/users/Kilte","html_url":"https://github.com/Kilte","followers_url":"https://api.github.com/users/Kilte/followers","following_url":"https://api.github.com/users/Kilte/following{/other_user}","gists_url":"https://api.github.com/users/Kilte/gists{/gist_id}","starred_url":"https://api.github.com/users/Kilte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kilte/subscriptions","organizations_url":"https://api.github.com/users/Kilte/orgs","repos_url":"https://api.github.com/users/Kilte/repos","events_url":"https://api.github.com/users/Kilte/events{/privacy}","received_events_url":"https://api.github.com/users/Kilte/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-09T11:42:21Z","updated_at":"2015-07-09T11:42:21Z","closed_at":null,"body":"For example, I have the following validator:\r\n\r\n```python\r\nclass Integer(Validator):\r\n    def validate(self, value):\r\n        try:\r\n            return int(value)\r\n        except ValueError:\r\n            self.error(value)\r\n\r\n```\r\n\r\nAnd when I've called `input_.get_argument('intarg')`, it should return an integer instead of string.\r\n"}}