We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3b01f8 commit 00273f7Copy full SHA for 00273f7
src/index.ts
@@ -240,7 +240,7 @@ export class OpenApiValidator {
240
const modulePath = path.join(this.options.operationHandlers, baseName);
241
if (!tmpModules[modulePath]) {
242
tmpModules[modulePath] = require(modulePath);
243
- if (!tmpModules[modulePath].oId) {
+ if (!tmpModules[modulePath][oId]) {
244
// if oId is not found only module, try the module's default export
245
tmpModules[modulePath] = tmpModules[modulePath].default;
246
}
0 commit comments