Closed nick-berilov closed 8 months ago
You are configuring it wrong. You have to define the security schema globally when initializing fastify-swagger.
@Uzlopak even if I move security: [{ bearerAuth: [] }],
from routes to swagger coonfig it doesn't change anything
Any chance to fix it?
Prerequisites
Fastify version
4.18.0
Plugin version
8.6.0
Node.js version
16
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
22.04
Description
Is there a way to hide authorization header from OpenAPI 3.1.0 UI, so that I would not need to set a dummy unused value every time?
Steps to Reproduce
Expected Behavior
Authorization valued should not be required if already set or authorization property should be hidden in UI