Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deep object schema regression in v8 #3233

Open
2 of 4 tasks
vladkrasn opened this issue Jan 10, 2025 · 0 comments
Open
2 of 4 tasks

Deep object schema regression in v8 #3233

vladkrasn opened this issue Jan 10, 2025 · 0 comments

Comments

@vladkrasn
Copy link

vladkrasn commented Jan 10, 2025

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

Minimum reproduction code

https://github.com/vladkrasn/nest-swagger-8-bug

Steps to reproduce

  1. Clone git repository
  2. npm install
  3. npm run start:dev
  4. Go to localhost:3000/swagger and check out the object in its 7 glory
  5. npm install @nestjs/swagger@8
  6. npm run start:dev
  7. 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:
image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant