Skip to content

Commit

Permalink
Removes apis from input Def before generation. (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
spencermcw authored and kalinchernev committed Feb 12, 2019
1 parent 3563890 commit 08d0cbc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/swagger-jsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ fs.readFile(program.definition, 'utf-8', (err, data) => {
swaggerDefinition.apis instanceof Array
) {
program.args = swaggerDefinition.apis;
delete swaggerDefinition.apis;
}

return createSpecification(swaggerDefinition, program.args, output);
Expand Down

0 comments on commit 08d0cbc

Please sign in to comment.