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
drizzle-orm
0.32.2
drizzle-kit
0.23.2
When wanting to override a nullable column, drizzle-zod does not respect when you completely override this with a zod type that is not nullable.
const userTable = pgTable("users", { name: text("name"), }); const userSchema = createInsertSchema(userTable, { name: z.string(), }); type UserSchema = TypeOf<typeof userSchema>; // type UserSchema = { // name?: string | null | undefined; // nullable, despite me overriding it with z.string() // }
I would expect UserSchema to result in
UserSchema
type UserSchema = { name: string }
drizzle-zod 0.5.1 drizzle-orm 0.32.2 drizzle-kit 0.23.2
The text was updated successfully, but these errors were encountered:
UP. I can confirm this problem exists in the latest drizzle-zod.
Sorry, something went wrong.
still no update on this?
This one was fixed in the latest drizzle-zod@0.6.0
drizzle-zod@0.6.0
L-Mario564
No branches or pull requests
What version of
drizzle-orm
are you using?0.32.2
What version of
drizzle-kit
are you using?0.23.2
Describe the Bug
When wanting to override a nullable column, drizzle-zod does not respect when you completely override this with a zod type that is not nullable.
Expected behavior
I would expect
UserSchema
to result inEnvironment & setup
drizzle-zod 0.5.1
drizzle-orm 0.32.2
drizzle-kit 0.23.2
The text was updated successfully, but these errors were encountered: