mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Add default version to response
Add default version to response
This commit is contained in:
committed by
Erik Mendoza
parent
e98d8af870
commit
0b03a26d1c
@@ -4825,6 +4825,9 @@ module.exports = {
|
||||
* @returns {object} - Detect root files result object
|
||||
*/
|
||||
mapGetRootFilesOutputToDetectRootFilesOutput(output, version) {
|
||||
if (!version) {
|
||||
version = '3.0.0';
|
||||
}
|
||||
let adaptedData = output.map((file) => {
|
||||
return { path: file };
|
||||
});
|
||||
|
||||
@@ -32,6 +32,7 @@ describe('detectRoot method', function() {
|
||||
expect(res).to.not.be.empty;
|
||||
expect(res.result).to.be.true;
|
||||
expect(res.output.data[0].path).to.equal('/petstore.yaml');
|
||||
expect(res.output.specification.version).to.equal('3.0.0');
|
||||
});
|
||||
|
||||
it('should return one root 3.0 correctly', async function() {
|
||||
|
||||
Reference in New Issue
Block a user