[ ] Regression
[ ] Bug report
[x ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Swagger support to hide a property of model via hidden option, .
Could you add it?
Can't you just... Not add the decorator?
What if I want to extend a class from a third party library and I don't want some property in superclass.
A similar issue raised in swagger core repo: https://github.com/swagger-api/swagger-core/issues/730
如果属性是来自父类的自定义对象,@ApiModelProperty 中的hidden属性失效~
Can't you just... Not add the decorator?
With nestjs/swagger v4 plugin enabled, all properties are automatically added to swagger. So this feature will be really nice to have.
@MardariG @ApiHideProperty() (see docs)
@kamilmysliwiec @ApiHideProperty() causes weird behaviour, and seems to make the field read only.
See:


(I am also experiencing this)
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.
Most helpful comment
Can't you just... Not add the decorator?