Skip to content

[Feature Request] Allow specifying a whitelist of models in the configuration so that zod and trpc can be skipped on others #728

Open
@levipro

Description

@levipro

Is your feature request related to a problem? Please describe.
When using zenstack on a large pre-existing database I have run in to an issue where I cannot run the server because of the number of files that get created by zod when using the trpc integration.

I have used the /// @@Gen.model(hide: true) comment to disable the trpc generation for certain models but zod still runs on all of them.

In my case this generated > 65 MB of files and the server could not start.

Describe the solution you'd like
Allow specifying a whitelist of models that zod+trpc generation should happen on

Describe alternatives you've considered
NA

Additional context
NA

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions