Closed alexborisov closed 4 months ago
Hi, thanks for asking!
Do I understand you correctly when I say that you:
Kind regards, Hans
I just released 4.5.0 on NPM that contains the x-no-fastify-config
option, see README.md
Kind regards, Hans
That's awesome! Thanks so much 👍
Hello, Thanks for this awesome library. I have a use case where my app runs on top of a common shared "platform". This provides a set of common utilities including some common routes (like a
/health
endpoint for CI/D). This stuff is lower level and I don't want to manage it through OpenAPI.Right now if I add a route to my OpenAPI schema regardless of whether I set an
operationId
or not it will create a fastify route for this. Because I already create these routes outside if I try to add them to the document I get an error that the route is already defined. I would ideally like all the possible routes to be listed in the document.One way would be to namespace the core routes, but I would like to avoid this. Since omitting an operationId will auto-gen the handler method name that logic should remain. Could we perhaps have some way to mark a route so it's ignored when generating the routes? Perhaps either as a custom
x-
prop on the openapi schema file or something in the plugin config (like an array of routes to ignore). Anything besides me having to code a custom operation resolver?Thanks!