{"action":"created","issue":{"url":"https://api.github.com/repos/kogosoftwarellc/express-openapi/issues/11","repository_url":"https://api.github.com/repos/kogosoftwarellc/express-openapi","labels_url":"https://api.github.com/repos/kogosoftwarellc/express-openapi/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/kogosoftwarellc/express-openapi/issues/11/comments","events_url":"https://api.github.com/repos/kogosoftwarellc/express-openapi/issues/11/events","html_url":"https://github.com/kogosoftwarellc/express-openapi/issues/11","id":138308023,"number":11,"title":"Option to validate all responses","user":{"login":"DaleJefferson","id":375005,"avatar_url":"https://avatars.githubusercontent.com/u/375005?v=3","gravatar_id":"","url":"https://api.github.com/users/DaleJefferson","html_url":"https://github.com/DaleJefferson","followers_url":"https://api.github.com/users/DaleJefferson/followers","following_url":"https://api.github.com/users/DaleJefferson/following{/other_user}","gists_url":"https://api.github.com/users/DaleJefferson/gists{/gist_id}","starred_url":"https://api.github.com/users/DaleJefferson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaleJefferson/subscriptions","organizations_url":"https://api.github.com/users/DaleJefferson/orgs","repos_url":"https://api.github.com/users/DaleJefferson/repos","events_url":"https://api.github.com/users/DaleJefferson/events{/privacy}","received_events_url":"https://api.github.com/users/DaleJefferson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-03T21:53:31Z","updated_at":"2016-03-03T22:13:33Z","closed_at":null,"body":"I can't find an option to validate all responses, it gets repetitive to keep doing.\r\n\r\n```\r\nconst validationError = res.validateResponse(200, json);\r\nif (validationError) {\r\n    return next(validationError);\r\n}\r\n\r\nres.json(json);\r\n```"},"comment":{"url":"https://api.github.com/repos/kogosoftwarellc/express-openapi/issues/comments/191990258","html_url":"https://github.com/kogosoftwarellc/express-openapi/issues/11#issuecomment-191990258","issue_url":"https://api.github.com/repos/kogosoftwarellc/express-openapi/issues/11","id":191990258,"user":{"login":"jsdevel","id":2605980,"avatar_url":"https://avatars.githubusercontent.com/u/2605980?v=3","gravatar_id":"","url":"https://api.github.com/users/jsdevel","html_url":"https://github.com/jsdevel","followers_url":"https://api.github.com/users/jsdevel/followers","following_url":"https://api.github.com/users/jsdevel/following{/other_user}","gists_url":"https://api.github.com/users/jsdevel/gists{/gist_id}","starred_url":"https://api.github.com/users/jsdevel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsdevel/subscriptions","organizations_url":"https://api.github.com/users/jsdevel/orgs","repos_url":"https://api.github.com/users/jsdevel/repos","events_url":"https://api.github.com/users/jsdevel/events{/privacy}","received_events_url":"https://api.github.com/users/jsdevel/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T22:13:33Z","updated_at":"2016-03-03T22:13:33Z","body":"> Is x-express-openapi-disable-response-validation-middleware a performance optimisation? I'm not sure what harm it does having validateResponse available on every request.\r\n\r\nIt was mainly to prevent the method from colliding with other libs mainly."}}