mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Add test working from index
add pipeline from schemapack to related files
This commit is contained in:
committed by
Erik Mendoza
parent
270fb5ce43
commit
2312dccd74
@@ -4845,12 +4845,14 @@ module.exports = {
|
||||
};
|
||||
},
|
||||
|
||||
mapRootFiles(rootFiles) {
|
||||
mapRootFiles(rootFiles, inputData) {
|
||||
let data = rootFiles.map((root) => {
|
||||
let relatedFiles = getRelatedFiles();
|
||||
return { rootFile: { path: root.path }, relatedFiles: relatedFiles };
|
||||
let { relatedFiles, missingRelatedFiles } = getRelatedFiles(root, inputData);
|
||||
return {
|
||||
rootFile: { path: root.path },
|
||||
relatedFiles,
|
||||
missingRelatedFiles };
|
||||
});
|
||||
|
||||
return data;
|
||||
},
|
||||
|
||||
@@ -4869,7 +4871,7 @@ module.exports = {
|
||||
}
|
||||
};
|
||||
if (inputRelatedFiles.rootFiles && inputRelatedFiles.rootFiles.length > 0) {
|
||||
res.output.data = this.mapRootFiles(inputRelatedFiles.rootFiles, version);
|
||||
res.output.data = this.mapRootFiles(inputRelatedFiles.rootFiles, inputRelatedFiles.data);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user