-
-
Notifications
You must be signed in to change notification settings - Fork 785
New issue
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
[BUG]:Drizzle-zod:Boolean and Serial types from Schema are defined as enum<unknown> when using CreateInsertSchema and CreateSelectSchema #1327
Comments
I am also seeing this with |
Yeah this is killing me too on
Without any create... override, I get this type error in my repo code... Why that type error on the loginfails integer field? Am I doing something stupid? |
facing the same |
I am getting a similar error with SQLite, although I don't know if it is related...
Additionally, OS: Windows 10 =============================== EDIT: I just fixed my issue with |
@Haffi921 thanks so much for replying here, I was at my wits end trying to figure out why it worked in one of my projects but not my other one. I wasted about 3 hours on this. The post you linked solved my problem as well. |
This one was fixed in the latest |
What version of
drizzle-orm
are you using?0.28.6
What version of
drizzle-kit
are you using?0.19.13
Describe the Bug
I've create a thread on Drizzle Discord in Help with details on it : https://discord.com/channels/1043890932593987624/1155846666780426280
With screenshots and explanation.
In resume : There is a problem for drizzle-zod. When you load Schema Boolean and Serial are recognize as unknown and it force you to override them and redefine them
Expected behavior
Don't need to override it and when you load schema using CreateInsertSchema and CreateSelectSchema. Boolean and Serial types are Boolean and numbers
Environment & setup
Using drizzle-zod in a Frontend app using vscode.
The text was updated successfully, but these errors were encountered: