Skip to content

Commit

Permalink
fixes in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishoermann committed Feb 12, 2023
1 parent b038e44 commit 7f6674c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ generator zod {
addInputTypeValidation = false // default is true
validateWhereUniqueInput = true // default is false
createOptionalDefaultValuesTypes = true // default is false
createRelationValuesType = true // default is false
createRelationValuesTypes = true // default is false
useDefaultValidators = false // default is true
coerceDate = false // default is true
writeNullishInModelTypes = true // default is false
Expand Down
5 changes: 3 additions & 2 deletions packages/generator/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ generator zod {
addInputTypeValidation = false // default is true
validateWhereUniqueInput = true // default is false
createOptionalDefaultValuesTypes = true // default is false
createRelationValuesType = true // default is false
createRelationValuesTypes = true // default is false
useDefaultValidators = false // default is true
coerceDate = false // default is true
writeNullishInModelTypes = true // default is false
Expand Down Expand Up @@ -171,9 +171,10 @@ generator zod {
### `validateWhereUniqueInput`

> default: `false`
By default the generator will not validate the `whereUnique` input types in multifile mode since a bunch of unused imports will often be generated. If you want to validate the `whereUnique` input types you can set this option to `true`.
> By default the generator will not validate the `whereUnique` input types in multifile mode since a bunch of unused imports will often be generated. If you want to validate the `whereUnique` input types you can set this option to `true`.
> Be aware that this can lead to eslint errors if you use the `no-unused-vars` rule which you need to resolve manually.
```prisma
generator zod {
// ...rest of config
Expand Down
2 changes: 1 addition & 1 deletion packages/generator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zod-prisma-types",
"version": "2.0.15",
"version": "2.0.16",
"description": "Generates zod schemas from Prisma models with advanced validation",
"author": "Chris Hörmann",
"license": "MIT",
Expand Down

0 comments on commit 7f6674c

Please sign in to comment.