You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] @auth doesn't attach OpenAPI security requirement, docs UI never sends the key #90
When you protect an endpoint with #* @auth <guard_name>, the API access works correctly, but the Try It Out or Authorise in the docs, no matter what flavour you use, fails. The key is never sent, and every endpoint sends a 400 Bad Request, causing confusion.
To Reproduce
Create a plumber2 API with an @authGuard and an endpoint tagged @auth <guard_name>
Start the API and open the docs page (e.g. /__docs__/)
Click "Authorise", enter a valid key
Click "Try it out" on the protected endpoint
Request fails with 400
Another way to check this is to check openapi.json directly: components.securitySchemes has the guard listed correctly, but the operation itself (e.g. paths./health.get) has no security field at all.
Expected Behaviour
The protected endpoint's OpenAPI operation should include a security requirement referencing the guard, so docs UIs know to attach the key automatically.
Activity