-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Description
Is your feature request related to a problem? Please describe.
I have a Bearer API Key security definition, due to Swagger 2.0, the user have to type "Bearer TOKEN" into the Authorize option.
Describe the solution you'd like
On the security definition of the API Key, define a description for it.
// @securityDefinitions.apikey Bearer
// @in header
// @name Authorization
// @description "Type 'Bearer TOKEN' to correctly set the API Key"
Describe alternatives you've considered
This cannot be set through the generation. Maybe changing the docs.go to get this feature.
Additional context
I know the tag "// @description" will conflict with the Swagger API description, maybe with "@securityDefinitions.apiKey.description" can solve this conflict.
yusrilmr, tbrodbeck, weibin159 and hmmftg