swaggo / swag

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

Add @securitydefinitions.bearer (#1100) #1821

Open pasha1980 opened 1 month ago

pasha1980 commented 1 month ago

Describe the PR Added the ability to define @securitydefinitions.bearer according to the OpenAPI v3 documentation https://swagger.io/docs/specification/authentication/bearer-authentication/

Relation issue Issues were closed long time ago, but with spec v3 support that feature already possible to implement https://github.com/swaggo/swag/issues/1142 https://github.com/swaggo/swag/issues/1100 https://github.com/swaggo/swag/issues/864 https://github.com/swaggo/swag/issues/804

Additional context I do not have a lot of experience with this project, so any input is more than welcome.