Skip to content
New issue

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

Missing exposeHeadRoutes property into the type definition of SwaggerOptions #811

Open
2 tasks done
giulio-coa opened this issue Jul 26, 2024 · 1 comment
Open
2 tasks done

Comments

@giulio-coa
Copy link

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the bug has not already been reported

Fastify version

^4.26.1

Plugin version

^8.15.0

Node.js version

18

Operating system

Linux

Operating system version (i.e. 20.04, 11.3, 10)

Alpine

Description

Missing exposeHeadRoutes property into the type definition of SwaggerOptions.

Link to code that reproduces the bug

No response

Expected Behavior

The TypeScript compiler should not detect the following error:

Object literal may only specify known properties, and 'exposeHeadRoutes' does not exist in type 'FastifyRegisterOptions<SwaggerOptions>'. ts(2769)
@mcollina
Copy link
Member

Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests (we use tsd for ts)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants