Description
StaticHtmlGenerator does not include custom header definitions. I have an endpoint that may pass a token in a custom header 'x-access-token' or as a query parameter 'token'
In the swagger.yaml file:
parameters:
- name: x-access-token
in: header
type: string
required: false
- name: token
in: query
type: string
required: false
This works in the swagger editor, as well as through an HTTP client (like SOAP UI)
However, when I generate the static HTML docs, the header section is blank.
Swagger-codegen version
swagger-codegen-cli 2.2.2
Swagger declaration file content or url
Command line used for generation
java -jar ./swagger-codegen-cli.jar generate -l html -i ./api/swagger/swagger.yaml
Steps to reproduce
Run the above command
Description
StaticHtmlGenerator does not include custom header definitions. I have an endpoint that may pass a token in a custom header 'x-access-token' or as a query parameter 'token'
In the swagger.yaml file:
This works in the swagger editor, as well as through an HTTP client (like SOAP UI)
However, when I generate the static HTML docs, the header section is blank.
Swagger-codegen version
swagger-codegen-cli 2.2.2
Swagger declaration file content or url
Command line used for generation
java -jar ./swagger-codegen-cli.jar generate -l html -i ./api/swagger/swagger.yaml
Steps to reproduce
Run the above command