Skip to content

Commit

Permalink
fix: preprocessor type of undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
cdimascio committed Jan 6, 2021
1 parent 7e601c4 commit d17abd3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/middlewares/parsers/schema.preprocessor.ts
Expand Up @@ -249,9 +249,11 @@ export class SchemaPreprocessor {
const options = opts[kind];
options.path = node.path;

this.handleSerDes(pschema, nschema, options);
this.handleReadonly(pschema, nschema, options);
this.processDiscriminator(pschema, nschema, options);
if (nschema) {
this.handleSerDes(pschema, nschema, options);
this.handleReadonly(pschema, nschema, options);
this.processDiscriminator(pschema, nschema, options);
}
}
}

Expand Down

0 comments on commit d17abd3

Please sign in to comment.