JKHeadley / JKHeadley/rest-hapi
RouteScope.readAuth property causes an unexpected behaviour in Swagger.
Open
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 155
- PR merge metrics
- No merged PRs in 30d
Description
If I set up `routeOptions.readAuth: false` inside a model, Swagger stops requiring authorisation header for many other routes. Not only in GET, but in POST and PUT as well..
Is there anyone else having this problem??
Contributor guide
Research direction
No file or test is named. Reproduce the behavior with a model using routeOptions.readAuth: false, then trace how RouteScope.readAuth affects Swagger authorization across GET, POST, and PUT routes; done when disabling authorization for one route no longer changes other routes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100