Swagger: @Body with name doesn't generate swagger

Created on 22 Mar 2019  Â·  4Comments  Â·  Source: nestjs/swagger

I'm submitting a...


[ ] Regression 
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior


@Body('name') name:string
no swagger

Expected behavior


@Body('name') name:string
swagger: has body param doc like name(body): string

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Environment


Nest version: 5.7.4


For Tooling issues:
- Node version: v10.15.1  
- Platform: Mac 

Others:

needs clarification

Most helpful comment

I have the some problems !!!!!!!

my code is:
image
but the swagger json can not edit the 'm' option, and try this post test on swagger
image

All 4 comments

Could you please provide a minimal repository which reproduces your issue?

I have the some problems !!!!!!!

my code is:
image
but the swagger json can not edit the 'm' option, and try this post test on swagger
image

Please, provide a minimal repository which reproduces your issue.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yuval-hazaz picture yuval-hazaz  Â·  3Comments

mogusbi picture mogusbi  Â·  3Comments

vh13294 picture vh13294  Â·  4Comments

ivashog picture ivashog  Â·  3Comments

malbertSC picture malbertSC  Â·  5Comments