Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/reference/plugins/zod.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ This plugin is built-in to ZenStack and does not need to be installed separately
| preserveTsFiles | Boolean | If the generated TS files should be preserved (after compiled to JS) | No | false |
| noUncheckedInput | Boolean | Disables schema generation for Prisma's ["Unchecked"](https://github.com/prisma/prisma/discussions/10121#discussioncomment-1621254) input types | No | false |
| mode | String | Controls if the generated schemas should reject, strict, or passthrough unknown fields. Possible values: "strict", "strip", "passthrough" | No | "strict" |
| version | String | The Zod version to target. Possible values: "v3", "v4" | No | "v3" |

:::info
When the `generateModels` option is used to specify a list of models to generate, the plugin will also recursively traverse and include all models that are referenced by the specified models. This can result in more code being generated than you expect.
Expand Down