mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Update bundle.js
When absolute path do not calculate path with join
This commit is contained in:
@@ -47,6 +47,9 @@ function comparePaths(path1, path2) {
|
|||||||
* @returns {object} - Detect root files result object
|
* @returns {object} - Detect root files result object
|
||||||
*/
|
*/
|
||||||
function calculatePath(parentFileName, referencePath) {
|
function calculatePath(parentFileName, referencePath) {
|
||||||
|
if (path.isAbsolute(referencePath)) {
|
||||||
|
return referencePath;
|
||||||
|
}
|
||||||
if (referencePath[0] === localPointer) {
|
if (referencePath[0] === localPointer) {
|
||||||
return `${parentFileName}${referencePath}`;
|
return `${parentFileName}${referencePath}`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user