Skip to content

Commit 00273f7

Browse files
author
Carmine DiMascio
committed
fix oId check
1 parent e3b01f8 commit 00273f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export class OpenApiValidator {
240240
const modulePath = path.join(this.options.operationHandlers, baseName);
241241
if (!tmpModules[modulePath]) {
242242
tmpModules[modulePath] = require(modulePath);
243-
if (!tmpModules[modulePath].oId) {
243+
if (!tmpModules[modulePath][oId]) {
244244
// if oId is not found only module, try the module's default export
245245
tmpModules[modulePath] = tmpModules[modulePath].default;
246246
}

0 commit comments

Comments
 (0)