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
{{ message }}
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.
The singular call to swaggerTools.initializeMiddlewareDOES NOT support this. You could do this by chaining your calls, so long as each document has a separate base URL and/or the paths do not collide.
Is there a good example in node that allows chaining of initialize calls. I tried to do something like that but did not seem to work. The first document that I use to call 'swaggerTools.initializeMiddleware(swaggerDoc, function (middleware)'
seems to take precedence regardless of how many other ones I initialized after it.
I tried to change the basePath in each document as well
It's just like any other callback-based API. You can use something like async or do it manually yourself:
swaggerTools.initializeMiddleware(doc1,function(mw1){// Do stuff with first middlewareswaggerTools.initializeMiddleware(doc2,function(mw2){// Do stuff with second middleware// Repeat...});});
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
No description provided.
The text was updated successfully, but these errors were encountered: