Skip to content

Feature Request: Support for @ApiHideProperty Decorator #39

@okonon

Description

@okonon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions