Skip to content

Commit

Permalink
move to async response validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Sep 21, 2019
1 parent 8b8bb59 commit a4b11de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewares/openapi.response.validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class ResponseValidator {
}

validate() {
return mung.json((body, req: any, res) => {
return mung.jsonAsync((body, req: any, res) => {
if (req.openapi) {
const responses = req.openapi.schema && req.openapi.schema.responses;
const validators = this._getOrBuildValidator(req, responses);
Expand Down

0 comments on commit a4b11de

Please sign in to comment.