BRIKEV / express-jsdoc-swagger

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

[BUG] Unable to render this definition #226

Closed fakhirarslan closed 1 year ago

fakhirarslan commented 2 years ago

Describe the bug 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).

Expected behavior Should open the swagger UI with API doc

Screenshots image image

Desktop (please complete the following information):

Additional context I've tried to add swagger: '2.0' and openapi: '3.0.0', but it doesn't work.

kevinccbsg commented 2 years ago

Hi @fakhirarslan thanks for reporting.

We only support openapi: '3.0.0'. I try to replicate your error based on that screenshot and I don't get that message. Could you share more lines of your code?