Gab*_*rds 0 swagger nestjs
我喜欢 CLI 插件如何让我不必在所有内容上编写 @ApiProperty()。
然而,在我的一些实体中,虽然我希望大多数属性是 @ApiProperty(),但我希望有些属性不是。
我在文档中找不到任何允许我从自动接收 @ApiProperty() 中排除特定字段的内容。
有人知道怎么做吗?
Jay*_*iel 7
您可以显式添加@ApiHideProperty(),CLI 不会@ApiProperty()向其中添加装饰器。
@ApiHideProperty()
@ApiProperty()
归档时间:
3 年,1 月 前
查看次数:
2029 次
最近记录: