Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed the condition of
hasServiceParams
`swagger.security` is a definition for the whole API. It is not necessarily set when there is security on individual methods. Therefore it is better to refer to `swagger.securityDefinitions` to see if you need ` hasServiceParams`. `isSecure` judgment also refers to ` swagger.securityDefinitions`. Ref: https://github.com/wcandillon/swagger-js-codegen/blob/master/lib/codegen.js#L41
- Loading branch information