You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current version of swagger-jsdoc-generator is not compatible with OpenAPI 3. This field "openapi": "3.0.0" is present in the swagger definition but ignored by swagger-jsdoc. It also adds "swagger": "2.0" to the definition by default and results in this error in the browser when trying to view the docs:
Unable to render this definition
swagger and openapi fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields.
Supported version fields are swagger: "2.0" and those that match openapi: 3.0.n (for example, openapi: 3.0.0).
This issue is caused by an outdated swagger-jsdoc dependency. By updating the swagger-jsdoc dependency this issue should be resolved. See pull request #5
The text was updated successfully, but these errors were encountered:
The current version of swagger-jsdoc-generator is not compatible with OpenAPI 3. This field
"openapi": "3.0.0"
is present in the swagger definition but ignored by swagger-jsdoc. It also adds"swagger": "2.0"
to the definition by default and results in this error in the browser when trying to view the docs:This issue is caused by an outdated swagger-jsdoc dependency. By updating the swagger-jsdoc dependency this issue should be resolved. See pull request #5
The text was updated successfully, but these errors were encountered: