mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
changed function name from returnCollectios to returnCollection
This commit is contained in:
4
index.js
4
index.js
@@ -70,14 +70,14 @@ module.exports = {
|
||||
let result;
|
||||
conversionResult = conversionResult || convertedSpec.result;
|
||||
|
||||
function returnCollections (resultSpec) {
|
||||
function returnCollection (resultSpec) {
|
||||
if (resultSpec.type === 'collection') {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// filtering out the collections from the convertedSpec
|
||||
result = convertedSpec.output.filter(returnCollections);
|
||||
result = convertedSpec.output.filter(returnCollection);
|
||||
convertedCollections.push(result[0]);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user