Skip to content

Commit

Permalink
Fixed check for undefined paths that lead to responses getting stucked
Browse files Browse the repository at this point in the history
  • Loading branch information
comino committed Oct 25, 2019
1 parent c59c8a1 commit 1427577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewares/openapi.security.ts
Expand Up @@ -19,7 +19,7 @@ export function security(
securityHandlers: SecurityHandlers,
) {
return async (req, res, next) => {
if (!req.openapi) {
if (!req.openapi || !req.openapi.schema) {
// this path was not found in open api and
// this path is not defined under an openapi base path
// skip it
Expand Down

0 comments on commit 1427577

Please sign in to comment.