{"action":"opened","issue":{"url":"https://api.github.com/repos/ctavan/express-validator/issues/301","repository_url":"https://api.github.com/repos/ctavan/express-validator","labels_url":"https://api.github.com/repos/ctavan/express-validator/issues/301/labels{/name}","comments_url":"https://api.github.com/repos/ctavan/express-validator/issues/301/comments","events_url":"https://api.github.com/repos/ctavan/express-validator/issues/301/events","html_url":"https://github.com/ctavan/express-validator/issues/301","id":197653379,"number":301,"title":"How to use as validation middleware","user":{"login":"iamchathu","id":3932230,"avatar_url":"https://avatars.githubusercontent.com/u/3932230?v=3","gravatar_id":"","url":"https://api.github.com/users/iamchathu","html_url":"https://github.com/iamchathu","followers_url":"https://api.github.com/users/iamchathu/followers","following_url":"https://api.github.com/users/iamchathu/following{/other_user}","gists_url":"https://api.github.com/users/iamchathu/gists{/gist_id}","starred_url":"https://api.github.com/users/iamchathu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamchathu/subscriptions","organizations_url":"https://api.github.com/users/iamchathu/orgs","repos_url":"https://api.github.com/users/iamchathu/repos","events_url":"https://api.github.com/users/iamchathu/events{/privacy}","received_events_url":"https://api.github.com/users/iamchathu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-27T06:24:10Z","updated_at":"2016-12-27T06:24:10Z","closed_at":null,"body":"I would like to check body and query parameters as middleware.\r\n\r\nlike\r\n\r\napp.get(\"/someRoute\",myValidationMiddleware,(req,res)=>{\r\n   //Validated data\r\n});\r\n\r\nCan I use express validator like middleware and how to implement myValidationMiddleware?\r\n\r\nThank you."}}
{"actor":{"display_login":"iamchathu"}}