This PR partially reverts https://github.com/fastify/fastify-swagger/pull/649 due to some unintended breakage. I had a couple of applications whose tests failed badly due to the HEAD routes now included in the definitions. This PR hides by default but add an option to expose them, both at the plugin level or at the route level.
The plugin would rely anymore on the Fastify own settings.
This PR partially reverts https://github.com/fastify/fastify-swagger/pull/649 due to some unintended breakage. I had a couple of applications whose tests failed badly due to the HEAD routes now included in the definitions. This PR hides by default but add an option to expose them, both at the plugin level or at the route level. The plugin would rely anymore on the Fastify own settings.
Fixes #722
Checklist
npm run test
andnpm run benchmark