-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels