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
[x] Regression
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
None of the schema's or endpoints in the Swagger UI have any content and clicking the endpoints transfers them to the default tag without loading any new content.
Expected behavior
Schema's should show their actual properties and endpoints should expand properly showing the schema content other data.
Minimal reproduction of the problem with instructions
When installing @nestjs/swagger and swagger-ui-express as instructed on the docs (https://docs.nestjs.com/openapi/introduction#installation) the swagger-ui-express package simply picks the latest version of swagger-ui-dist. This is usually fine but in this case it's causing issues.
Looking at the readme for swagger-ui-express they also advice freezing the version of swagger-ui-dist to prevent issues like this. I quote: Swagger version is pulled from npm module swagger-ui-dist. Please use a lock file or specify the version of swagger-ui-dist you want to ensure it is consistent across environments.
What I did to fix the issue is locally install the previous version of swagger-ui-dist with npm i --save [email protected].
Perhaps we should take this into account and also instruct users to do so in the docs?
Environment
Nest version: ^7.0.0
For Tooling issues:
- Node version: `12.18.2`
- Platform: Mac
The text was updated successfully, but these errors were encountered:
@kamilmysliwiec should we not follow the instructions and freeze the version of swagger-ui-dist and instruct users to do so from the NestJS docs? To prevent issues like these in the future?
I'm submitting a...
Current behavior
None of the schema's or endpoints in the Swagger UI have any content and clicking the endpoints transfers them to the
default
tag without loading any new content.Expected behavior
Schema's should show their actual properties and endpoints should expand properly showing the schema content other data.
Minimal reproduction of the problem with instructions
When installing
@nestjs/swagger
andswagger-ui-express
as instructed on the docs (https://docs.nestjs.com/openapi/introduction#installation) theswagger-ui-express
package simply picks the latest version ofswagger-ui-dist
. This is usually fine but in this case it's causing issues.Looking at the readme for
swagger-ui-express
they also advice freezing the version ofswagger-ui-dist
to prevent issues like this. I quote:Swagger version is pulled from npm module swagger-ui-dist. Please use a lock file or specify the version of swagger-ui-dist you want to ensure it is consistent across environments.
What I did to fix the issue is locally install the previous version of
swagger-ui-dist
withnpm i --save [email protected]
.Perhaps we should take this into account and also instruct users to do so in the docs?
Environment
The text was updated successfully, but these errors were encountered: