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
I've not tested it again Express 5.0 as it's still alpha, let me give it a try.
But if it doesn't work any version we ship will probably break backwards compatibility and requires shipping a major @mpashkovskiy.
Some fixes: var stack = app.stack || (app.router && app.router.stack)
express doesn't have app._router anymore, so we have to use .router
However, it still doesn't work as it doesn't go through the tree correctly, only /leafURL show up in the generated swagger doc, instead of /branch/leafURL
I cannot get the generator to work and I'm not sure if the problem is the express version I am using (5.0 alpha) or maybe my server structure.
I created an example demonstrating my error: https://github.com/MoMannn/express-oas-generator-example
Just run
npm run start
.The text was updated successfully, but these errors were encountered: