fastify / fastify-swagger

Swagger documentation generator for Fastify
MIT License
889 stars 199 forks source link

fix(openapi): hide auth header when set in securityScheme #769

Closed aheckmann closed 6 months ago

aheckmann commented 7 months ago

Treat the http bearer auth security scheme the same as other security schemes by removing the authorization header.

Fixes #734

Checklist

aheckmann commented 7 months ago

It's possible. I haven't been using it so didn't check it out.

aheckmann commented 7 months ago

@mcollina From what I could find, this lib already handles swagger properly b/c bearer auth does not have special handling in the spec - only OpenAPI 3 has the special bearer declaration where in is not specified.