Adds middleware to your express app to serve the Swagger UI bound to your Swagger document. This acts as living documentation for your API hosted from within your app.
MIT License
1.43k
stars
228
forks
source link
Fix `serveFiles` to work w/ dynamic swaggerDoc #336
serveFiles
did not respect on-the-fly changes in a swagger doc, but rendered the old content.The fix now also enables this pattern, where
serveFiles
doesn't need the swaggerDoc upfront (which is desired in dynamic cases):Also fixes #318 which stumbled over the same issue, but draw the wrong conclusion that the documentation would be wrong.