swaggo / swag

Automatically generate RESTful API documentation with Swagger 2.0 for Go.
MIT License
10.77k stars 1.2k forks source link

[V2] feat: supports bearer token security tag #1853

Open XiXiangFiles opened 4 months ago

XiXiangFiles commented 4 months ago

Is your feature request related to a problem? Please describe. According to the bearer-authentication documentation, Swagger v3.x has this feature. Therefore, I think v2 needs to support it as well.

Describe the solution you'd like I want to add this annotation for this feature. annotation description parameters example
securitydefinitions.bearerauth Bearer Authentication auth. // @securitydefinitions.bearerauth BearerAuth
ubogdan commented 1 month ago

@XiXiangFiles build is failing, I would appreciate it if you could fix that!