From 149c62fad4b439035bfcf11fc638c3c7834ac92b Mon Sep 17 00:00:00 2001 From: Carmine DiMascio Date: Mon, 26 Oct 2020 10:27:54 -0400 Subject: [PATCH] (fix) operation handler default resolver paths undefined --- src/openapi.validator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openapi.validator.ts b/src/openapi.validator.ts index 53d0db5e..37faf717 100644 --- a/src/openapi.validator.ts +++ b/src/openapi.validator.ts @@ -318,7 +318,7 @@ export class OpenApiValidator { expressRoute.indexOf(baseUrl) === 0 ? expressRoute.substring(baseUrl.length) : expressRoute; - router[method.toLowerCase()](path, resolver(basePath, route)); + router[method.toLowerCase()](path, resolver(basePath, route, this.options.apiSpec)); } } return router;