swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
My security definitions are available on swagger-editor, but not on swagger UI generated via swagger-codegen. The Security section is seen in the swagger-editor for the pertinent swagger.yaml, but when nodejs code is generated for this and viewed as a UI, the security section isn't present for the
Description
My security definitions are available on swagger-editor, but not on swagger UI generated via swagger-codegen. The Security section is seen in the swagger-editor for the pertinent swagger.yaml, but when nodejs code is generated for this and viewed as a UI, the security section isn't present for the
Swagger-codegen version
I think I am using 2.2.3-SNAPSHOT (from
pom.xml
).Swagger declaration file content or url
https://gist.github.com/SonnyRajagopalan/7557f94b433cc7b8405d0a1f55b9ca85
The gist also contains a GUI view of the bug in the comments.
Command line used for generation
Steps to reproduce
To reproduce, just run the command above with the swagger file in the gist.
Related issues
Could be related to https://github.com/swagger-api/swagger-codegen/issues/3947, https://github.com/swagger-api/swagger-codegen/issues/1158 and a number of others that pertain to security in
swagger-codegen
.Suggest a Fix
I do not have a fix for this at the moment.