Skip to content

Commit

Permalink
fix oId check
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Feb 16, 2020
1 parent e3b01f8 commit 00273f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -240,7 +240,7 @@ export class OpenApiValidator {
const modulePath = path.join(this.options.operationHandlers, baseName);
if (!tmpModules[modulePath]) {
tmpModules[modulePath] = require(modulePath);
if (!tmpModules[modulePath].oId) {
if (!tmpModules[modulePath][oId]) {
// if oId is not found only module, try the module's default export
tmpModules[modulePath] = tmpModules[modulePath].default;
}
Expand Down

0 comments on commit 00273f7

Please sign in to comment.