mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
add path solving while searching
add path solving while searching
This commit is contained in:
committed by
Erik Mendoza
parent
0f23e60afd
commit
c65d80ae05
@@ -4845,11 +4845,11 @@ module.exports = {
|
||||
};
|
||||
},
|
||||
|
||||
mapRootFiles(rootFiles, inputData) {
|
||||
mapRootFiles(rootFiles, inputData, origin) {
|
||||
let data = rootFiles.map((root) => {
|
||||
let { relatedFiles, missingRelatedFiles } = getRelatedFiles(root, inputData);
|
||||
let { relatedFiles, missingRelatedFiles } = getRelatedFiles(root, inputData, origin);
|
||||
return {
|
||||
rootFile: { path: root.path },
|
||||
rootFile: { path: root.fileName },
|
||||
relatedFiles,
|
||||
missingRelatedFiles };
|
||||
});
|
||||
@@ -4871,7 +4871,8 @@ module.exports = {
|
||||
}
|
||||
};
|
||||
if (inputRelatedFiles.rootFiles && inputRelatedFiles.rootFiles.length > 0) {
|
||||
res.output.data = this.mapRootFiles(inputRelatedFiles.rootFiles, inputRelatedFiles.data);
|
||||
res.output.data = this.mapRootFiles(inputRelatedFiles.rootFiles, inputRelatedFiles.data,
|
||||
inputRelatedFiles.origin);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user