Skip to content

Commit

Permalink
Merge pull request #371 from dystopiandev/pr/fix#369
Browse files Browse the repository at this point in the history
fix for issue #369
  • Loading branch information
cdimascio committed Sep 15, 2020
2 parents 2f817f4 + 6a7b0a0 commit 3d42bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewares/openapi.request.validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class RequestValidator {
}
: undefined;

const valid = validator({ ...req, cookies });
const valid = validator({ query: {}, ...req, cookies });
if (valid) {
next();
} else {
Expand Down

0 comments on commit 3d42bc8

Please sign in to comment.