Drizzle zod infer wrong type
Using createInsertSchema* with a jsonb field
number | null for month is transformed into any


7 Replies
Hi, which version of drizzle orm are you using?
I tried replicating the issue but am unable to do so.
This is what I did.
This is what I am getting as the type


Hi @Mukund , I'm using drizzle-zod package to infer the type, with createInsertSchema method
using 0.7.0 drizzle zod, latest drizzle orm 0.39.3
using postgres (pgTable)
with createInsertSchema**
follow up: created an issue related to this
@Mario564 thanks for your work on this lib, excited to try rqbv2 !! 🙂
GitHub
[BUG]: create_x_Schema from [email protected] does not infer types ...
Report hasn't been filed before. I have verified that the bug I'm about to report hasn't been filed before. What version of drizzle-orm are you using? 0.39.3 What version of drizzle-kit...
Will look into it. Thanks for creating the issue
Is this fixed with rqb v2?
Nope, still waiting on other bugfix PRs to be merged before working on new ones