You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
asyncfunctionfirstDocument(app){app.register(import('@fastify/swagger'))app.route(...)// all routes that are to go in the first document}asyncfunctionsecondDocument(app){app.register(import('@fastify/swagger'))app.route(...)// all routes that are to go in the second document}
Prerequisites
Issue
I spent hours trying to figure out myself, but I cannot seem to manage to generate multiple documents.
With this:
I get :
FST_ERR_DEC_ALREADY_PRESENT: The decorator "swagger" has already been added.
If I use encapsulation as described here:
#213
Then both of my generated documents have no routes...
Isn't it possible to have the auto mode with encapsulation ?
The text was updated successfully, but these errors were encountered: