Open
Description
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
I have a fairly complex object that is being sent and validated through an http query. Object schema.
Here how it looks with nestjs/swagger@8. Looks like a plain deep object, which it isn't:
Minimum reproduction code
https://github.com/vladkrasn/nest-swagger-8-bug
Steps to reproduce
- Clone git repository
- npm install
- npm run start:dev
- Go to localhost:3000/swagger and check out the object in its 7 glory
- npm install @nestjs/swagger@8
- npm run start:dev
- Go to localhost:3000/swagger and check out the object in its 8 disarray
Expected behavior
Here's how it looks when rendered by nestjs/swagger@7:
I tried to search for stuff that was changed in 8 that would've affected this, but couldn't find it. Might be a regression.
Package version
8.1.3
NestJS version
10.4.4
Node.js version
22.6.0
In which operating systems have you tested?
- macOS
- Windows
- Linux
Other
No response