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 }}
Repository navigation
options.htmlui no longer works for adding swagger docs #75
According to the docs, should be able to pass options like this to enable swagger:
constoapi=openapi({openapi: '3.0.0',info: {title: 'Express Application',description: 'Generated docs from an Express api',version: '1.0.0',}},{htmlui: 'swagger-ui'})// This will serve the generated json document(s)// (as well as the swagger-ui if configured)app.use(oapi)
This worked in v0.3.0 but does not work since v1.1.0. The problem seems to be that middleware.swaggerui was changed to a function but its call site was not updated:
Activity
Update usage of middleware.swaggerui to reflect that fact that it is …
Megapixel99 commentedon Sep 22, 2025
I do not believe you need to pass in the
htmluioption... you should be able to use: