Skip to content

Commit

Permalink
Merge pull request #93 from 7474/patch-1
Browse files Browse the repository at this point in the history
Fixed the condition of `hasServiceParams`
  • Loading branch information
kazuhitoyokoi authored Feb 27, 2019
2 parents 22fc19e + d4e8b8c commit 744eab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nodegen.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ function swagger2node(data, options) {
return params.split(',').filter(p => p).some(p => p !== 'body') ? render(content) : '';
};
};
var hasServiceParams = swagger.host === undefined || swagger.security !== undefined;
var hasServiceParams = swagger.host === undefined || swagger.securityDefinitions !== undefined;

// Create node.js
var nodeSourceCode = CodeGen.getCustomCode({
Expand Down

0 comments on commit 744eab1

Please sign in to comment.