From 6f7f582d16a9d119652a452b9781180ebe16f547 Mon Sep 17 00:00:00 2001 From: Carmine DiMascio Date: Fri, 1 Jan 2021 23:20:18 -0500 Subject: [PATCH] fix: update comments --- src/middlewares/parsers/schema.preprocessor.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/middlewares/parsers/schema.preprocessor.ts b/src/middlewares/parsers/schema.preprocessor.ts index e0f4a11b..ab557617 100644 --- a/src/middlewares/parsers/schema.preprocessor.ts +++ b/src/middlewares/parsers/schema.preprocessor.ts @@ -170,10 +170,9 @@ export class SchemaPreprocessor { private traverseSchemas(nodes: TopLevelSchemaNodes, visit) { const recurse = (parent, node, opts: TraversalStates) => { const schema = this.resolveSchema(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; }