changed the function name to mergeFiles

This commit is contained in:
Dhroov7
2019-12-09 11:49:01 +05:30
parent 825620979f
commit abf9962aed
2 changed files with 2 additions and 2 deletions

View File

@@ -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) {

View File

@@ -157,7 +157,7 @@ module.exports = {
});
},
loadSpec: function(source, options = {}) {
mergeFiles: function(source, options = {}) {
options.source = source;
options.origin = source;
return this.readSpecFile(source)