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

swagger debugging does not work properly when using @body("user") user:User as an argument, there is no Request body, but @body() user:User works fine with no argument #3008

Closed
2 of 4 tasks
zRa1ny opened this issue Jul 17, 2024 · 1 comment

Comments

@zRa1ny
Copy link

zRa1ny commented Jul 17, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

swagger debugging does not work properly when using @Body("user") user:User as an argument, there is no Request body,
企业微信截图_17212095363487

but @Body() user:User works fine with no argument

企业微信截图_1721209579575

Minimum reproduction code

Steps to reproduce

Expected behavior

swagger debugging does not work properly when using @Body("user") user:User as an argument, there is no Request body, but @Body() user:User works fine with no argument

Package version

^7.4.0

NestJS version

^9.0.0

Node.js version

16.17.0

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

@kamilmysliwiec
Copy link
Member

Thank you for taking the time to submit your report! From the looks of it, this could be better discussed on our Discord. If you haven't already, please join here and send a new post in the #⁠ 🐈 nestjs-help forum. Make sure to include a link to this issue, so you don't need to write it all again. We have a large community of helpful members, who will assist you in getting this to work.

@nestjs nestjs locked and limited conversation to collaborators Jul 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants