Closed Diex closed 2 years ago
Please look at regarding swagger-jsdoc and openapi 3.0
https://github.com/scottie1984/swagger-ui-express/issues/189#issuecomment-738986346
This issue is caused by the way the route is referenced. The referencing must always start from the root of your application. So './routes/abc.js'
must be changed to 'the-folder-name-in-root/routes/abc.js'
This issue is caused by the way the route is referenced. The referencing must always start from the root of your application. So
'./routes/abc.js'
must be changed to'the-folder-name-in-root/routes/abc.js'
changes like "./the-folder-name-in-root/routes/abc.js"
using js-docs it renders no path doc at all. just a message: "No operations defined in spec!"
pkgs: "swagger-jsdoc": "^6.0.0", "swagger-ui-express": "^4.1.6" node10
config goes like this:
`
'swaggerDocs' looks like this:
any thoughts?
thx