express-jsdoc-swagger icon indicating copy to clipboard operation
express-jsdoc-swagger copied to clipboard

[BUG] Unable to render this definition

Open fakhirarslan opened this issue 3 years ago • 1 comments

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):

  • OS: Ubuntu

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

fakhirarslan avatar Jul 08 '22 12:07 fakhirarslan

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?

kevinccbsg avatar Jul 27 '22 17:07 kevinccbsg