mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Added first scenarios
Added first scenarios
This commit is contained in:
committed by
Erik Mendoza
parent
006c3de8a8
commit
36e83721dd
@@ -4786,5 +4786,30 @@ module.exports = {
|
||||
});
|
||||
return endpoints;
|
||||
},
|
||||
inputValidation
|
||||
inputValidation,
|
||||
|
||||
mapDetectRootFilesInputToGetRootFilesInput(input) {
|
||||
let adaptedData = input.data.map((file) => {
|
||||
return { fileName: file.path };
|
||||
});
|
||||
return { data: adaptedData };
|
||||
},
|
||||
|
||||
mapGetRootFilesOutputToDetectRootFilesOutput(output, version) {
|
||||
let adaptedData = output.map((file) => {
|
||||
return { path: file };
|
||||
});
|
||||
return {
|
||||
result: true,
|
||||
output: {
|
||||
type: 'rootFiles',
|
||||
specification: {
|
||||
type: 'OpenAPI',
|
||||
version: version
|
||||
},
|
||||
data: adaptedData
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user