mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
add multiple versions support
add multiple versions support
This commit is contained in:
committed by
Erik Mendoza
parent
36e83721dd
commit
30cc74b720
@@ -4788,6 +4788,11 @@ module.exports = {
|
||||
},
|
||||
inputValidation,
|
||||
|
||||
/**
|
||||
* Maps the input from detect root files to get root files
|
||||
* @param {object} input - input schema
|
||||
* @returns {Array} - Array of all MISSING_ENDPOINT objects
|
||||
*/
|
||||
mapDetectRootFilesInputToGetRootFilesInput(input) {
|
||||
let adaptedData = input.data.map((file) => {
|
||||
return { fileName: file.path };
|
||||
@@ -4795,6 +4800,12 @@ module.exports = {
|
||||
return { data: adaptedData };
|
||||
},
|
||||
|
||||
/**
|
||||
* Maps the output from get root files to detect root files
|
||||
* @param {object} output - output schema
|
||||
* @param {string} version - specified version of the process
|
||||
* @returns {object} - Detect root files result object
|
||||
*/
|
||||
mapGetRootFilesOutputToDetectRootFilesOutput(output, version) {
|
||||
let adaptedData = output.map((file) => {
|
||||
return { path: file };
|
||||
|
||||
Reference in New Issue
Block a user