Skip to content

Schema refs are missing for query parameters in swagger doc generation #3652

@erdysson

Description

@erdysson

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

Schema refs are missing for query parameters with @apiquery() or @query(), and each schema is inlined, unlike @ApiBody() or @Body() decorators

Minimum reproduction code

https://github.com/erdysson/nest-swagger-bug-report

Steps to reproduce

No response

Expected behavior

If the schema already exists, it should be referenced correctly instead of inlined.

Package version

11.2.3

NestJS version

11.1.9

Node.js version

24.11.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