Skip to content

Deep object schema regression in v8 #3233

Open
@vladkrasn

Description

@vladkrasn

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions