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
Describe the bug In Prisma schema, I defined a field as a Json nullable type, but the generated result from Zod is not nullable.
Screenshots
schema.prisma
model User { name String? bio Json? }
then run prisma migrate dev
prisma migrate dev
prisma/generated/zod/index.ts
export const UserSchema = z.object({ name: z.string().nullable(), bio: JsonValueSchema, })
model User { name String bio Json }
export const UserSchema = z.object({ name: z.string(), bio: JsonValueSchema.nullable(), })
Package versions (please complete the following information):
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
chrishoermann
Successfully merging a pull request may close this issue.
Describe the bug
In Prisma schema, I defined a field as a Json nullable type, but the generated result from Zod is not nullable.
Screenshots
column is not nullable in prisma schema, but the generated type is not nullable
schema.prisma
then run
prisma migrate dev
prisma/generated/zod/index.ts
column is nullable in prisma schema, but the generated type is nullable
schema.prisma
then run
prisma migrate dev
prisma/generated/zod/index.ts
Package versions (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: