midway icon indicating copy to clipboard operation
midway copied to clipboard

Swagger问题:Body参数的示例不能显示,在swagger-ui/index.html上面显示为空对象

Open feiyueXH opened this issue 3 years ago • 2 comments

image image

feiyueXH avatar Jun 15 '21 08:06 feiyueXH

export class ProjScheDTO { @Rule(RuleType.number()) id: number; } @Body(ALL) pro: ProjScheDTO 这样才会有吧。。。

gogogo1024 avatar Jun 16 '21 07:06 gogogo1024

在 DTO 中写就行 可以参考我写的示例 https://github.com/mowatermelon/mwegg

mowatermelon avatar Sep 14 '21 02:09 mowatermelon

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

github-actions[bot] avatar Aug 21 '23 08:08 github-actions[bot]