We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I got the following model:
model User { /// other fields name String? }
It should produce the following zod schema:
const UserSchema = z.object({ name: z.string().nullable() })
instead of:
const UserSchema = z.object({ name: z.string().nullish() })
I believe that string | null union type (from Prisma exports) suits better than string | undefined | null union type got from Zod schemas
string | null
string | undefined | null
The text was updated successfully, but these errors were encountered:
+1, it would be more cosistent
Sorry, something went wrong.
No branches or pull requests
If I got the following model:
It should produce the following zod schema:
instead of:
I believe that
string | null
union type (from Prisma exports) suits better thanstring | undefined | null
union type got from Zod schemasThe text was updated successfully, but these errors were encountered: