prisma-class-generator icon indicating copy to clipboard operation
prisma-class-generator copied to clipboard

Feature Request: Support for @ApiHideProperty Decorator

Open okonon opened this issue 1 year ago • 0 comments

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.

okonon avatar Jul 18 '23 23:07 okonon