Feature Request: Support for @ApiHideProperty Decorator
okonon opened this issue · 0 comments
okonon commented
The nestjs-swagger library provides the @ApiHideProperty decorator, which is used to hide properties in the Swagger UI and exclude them from the API documentation. However, when using prisma-class-generator
to generate classes based on a Prisma schema, this decorator is not available.
Specifically, it would be beneficial to use @ApiHideProperty to exclude sensitive or unnecessary fields such as "passwordHash", "updatedBy", and "createdBy" from the generated documentation.
I propose that prisma-class-generator
should support the @ApiHideProperty decorator. This would allow developers to annotate fields in the Prisma schema which should be hidden from the API documentation.