Commit d4e8b8c
authored
Fixed the condition of
`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#L41hasServiceParams
1 parent b39ecda commit d4e8b8c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | | - | |
| 407 | + | |
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
| |||
0 commit comments