We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.27.0
8.14.0
20.11.1
macOS
14.5
await app.register(swagger, { mode: 'dynamic', openapi: config.get('openapi'), exposeHeadRoutes: false })
Even if exposeHeadRoutes is set to false, HEAD routes still exist in the specification.
exposeHeadRoutes
I traced the code and found that it works correctly after modifying the following code in addHook() (lib/util/add-hook.js):
lib/util/add-hook.js
// routes.push(routeOptions) routes.push({...routeOptions})
I'm not sure if there is a problem with modifying it like this, or if there is another better way?
No response
The text was updated successfully, but these errors were encountered:
Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests.
Sorry, something went wrong.
No branches or pull requests
Prerequisites
Fastify version
4.27.0
Plugin version
8.14.0
Node.js version
20.11.1
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
14.5
Description
Even if
exposeHeadRoutes
is set to false, HEAD routes still exist in the specification.I traced the code and found that it works correctly after modifying the following code in addHook() (
lib/util/add-hook.js
):I'm not sure if there is a problem with modifying it like this, or if there is another better way?
Link to code that reproduces the bug
No response
Expected Behavior
No response
The text was updated successfully, but these errors were encountered: