Unable to generate Swagger spec with more than one security header using "AND" logic. #2294
Labels
auth
API authentication
generate spec
Related to spec generation from code
needs testing
Needs more testing for issue confirmation/qualification
scanner
Problem statement
I'm unable to generate the Swagger specification for making more than one security header required for authentication. For example, I'm using
x_client_id
andaccess_token
for authenticating the request, but I'm not able to generate the Swagger specs for it.The issues here mentions that the go swagger has the support for AND logic in the Security headers, but I'm not able to find the documentation for the same.
I'm using the following comments for generating the Swagger specs:-
It generates the following Swagger specs:-
The expected output should be:-
Environment
swagger version: 2.0
go version: go1.14.2
OS: macOS 10.14.5
The text was updated successfully, but these errors were encountered: