BRIKEV / express-jsdoc-swagger

Swagger OpenAPI 3.x generator
https://brikev.github.io/express-jsdoc-swagger-docs/#/
MIT License
219 stars 30 forks source link

[BUG] Unable to render this definition (production) #232

Open icueth opened 2 years ago

icueth commented 2 years ago

Lunch localhost is no problem but on production Unable to render this definition The provided definition does not specify a valid version field.

Please indicate a valid Swagger or OpenAPI version field. Supported version fields are swagger: "2.0" and those that match openapi: 3.0.n (for example, openapi: 3.0.0).

Screen Shot 2022-11-08 at 17 00 59

config: const options = { info: { version: '1.0.0', title: 'My Docs', description: 'API (Staging)', }, servers: [ { "url": siteUrl + '/dev/app1/', "description": "(App1)" }, { "url": siteUrl + '/dev/app2/', "description": "(App2)" }, ], baseDir: __dirname, filesPattern: './*/.js', swaggerUIPath: '/api/docs', }

how to fixed?

Thaks, iCue

orhanayd commented 1 year ago

I have same problem.

Ashwith-Madikonda commented 4 months ago

Even i have same issue.