mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
changed the function name to mergeFiles
This commit is contained in:
2
index.js
2
index.js
@@ -36,7 +36,7 @@ module.exports = {
|
||||
async.eachSeries(rootFiles, (rootFile, callback) => {
|
||||
parse
|
||||
// will merge all the files in the folder
|
||||
.loadSpec(rootFile, OasResolverOptions)
|
||||
.mergeFiles(rootFile, OasResolverOptions)
|
||||
.then((spec) => {
|
||||
converter.convert(spec, options, (err, result) => {
|
||||
if (err) {
|
||||
|
||||
@@ -157,7 +157,7 @@ module.exports = {
|
||||
});
|
||||
},
|
||||
|
||||
loadSpec: function(source, options = {}) {
|
||||
mergeFiles: function(source, options = {}) {
|
||||
options.source = source;
|
||||
options.origin = source;
|
||||
return this.readSpecFile(source)
|
||||
|
||||
Reference in New Issue
Block a user