Adds middleware to your express app to serve the Swagger UI bound to your Swagger document. This acts as living documentation for your API hosted from within your app.
I tried to implement the solution but I'm stuck with this error:
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).
Hi all,
I tried to implement the solution but I'm stuck with this error:
My implementation is the following:
swagger.js
index.js
When I look into the delivered files from the webrequest, the file looks like this:
swagger-ui-init.js
This looks fine for me, maybe one of you has an idea what might be wrong?
Cheers Gio