Update relatedEntities.js

Removed unnecessary comments
This commit is contained in:
Luis Tejeda
2022-05-11 10:29:07 -05:00
committed by Erik Mendoza
parent 6515609fb9
commit d7cfba0b40

View File

@@ -42,12 +42,8 @@ function getReferences (currentNode, refTypeResolver, pathSolver) {
);
if (hasReferenceTypeKey) {
if (!added(property.$ref, referencesInNode)) {
referencesInNode.push({ path: pathSolver(property) }); // schemas.yaml#dog related files schemas.yaml
// schemas{ dog $ref: #compo/animal } #comp/animal
} // bundle schemas.yaml#dog => schemas.yaml#dog
// a related entities { dog $ref: #compo/animal } => [dog, animal]
// $ref components/schemas/schemas.yaml#compo/animal ref from root
// [schemas.yaml, compo, animal] key in components
referencesInNode.push({ path: pathSolver(property) });
}
}
}
});