zod-prisma-types icon indicating copy to clipboard operation
zod-prisma-types copied to clipboard

Option to disable adding `.strict()` to schemas.

Open bostjanpisler opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. I would like to extend the created schemas with .merge and .omit which is not possible for schemas with .strict()

Describe the solution you'd like Allow adding optional disableAddingStrict = true to generator Client to disable .strict() on all schemas.

bostjanpisler avatar Jan 13 '24 05:01 bostjanpisler

This would be very useful. There are often hidden-to-enduser fields that I would like to omit, and sometimes modifications to existing fields (nully, etc.) that would come in handy.

dshunfen avatar Aug 21 '24 06:08 dshunfen

Hey @chrishoermann, What do you think about adding this optional? That would be really helpful to customize schemas.

ekuzu avatar Sep 15 '24 11:09 ekuzu