mirror of
				https://github.com/postmanlabs/openapi-to-postman.git
				synced 2022-11-29 22:05:00 +03:00 
			
		
		
		
	Update relatedEntities.js
Removed unnecessary comments
This commit is contained in:
		
				
					committed by
					
						
						Erik Mendoza
					
				
			
			
				
	
			
			
			
						parent
						
							6515609fb9
						
					
				
				
					commit
					d7cfba0b40
				
			@@ -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) });
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  });
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user