Skip to content

Commit

Permalink
fix: update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cdimascio committed Jan 2, 2021
1 parent 45c2605 commit 6f7f582
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/middlewares/parsers/schema.preprocessor.ts
Expand Up @@ -170,10 +170,9 @@ export class SchemaPreprocessor {
private traverseSchemas(nodes: TopLevelSchemaNodes, visit) {
const recurse = (parent, node, opts: TraversalStates) => {
const schema = this.resolveSchema<SchemaObject>(node.schema);

if (!schema) {
// if we can't resolve the schema, skip it
// TODO fix me - must resolve $refs like, etc
// if we can't dereference a path within the schema, skip preprocessing
// TODO handle refs like below during preprocessing
// #/paths/~1subscription/get/requestBody/content/application~1json/schema/properties/subscription
return;
}
Expand Down

0 comments on commit 6f7f582

Please sign in to comment.