Drizzle typebox enum array not working

I am making this post to raise some attention to an issue I made around 2 weeks ago on GitHub. https://github.com/drizzle-team/drizzle-orm/issues/1345#issuecomment-1771082418 The typebox schema and types generated for enum arrays is wrong. It seems like it would be fairly simple to fix, I hope this can be investigated soon ๐Ÿ˜„ Probably this is also connected https://github.com/drizzle-team/drizzle-orm/issues/1110
GitHub
[BUG]:drizzle-zod produces wrong type ยท Issue #1110 ยท drizzle-team/...
What version of drizzle-orm are you using? 0.28.5 What version of drizzle-kit are you using? 0.19.13 Describe the Bug I'm using drizzle-orm, drizzle-kit & drizzle-zod in my application. One...
GitHub
[BUG]: Drizzle typebox enum array wrong schema and type ยท Issue #13...
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 The typebox schema and types generated for enum arrays is wrong. Reproduction: ...
6 Replies
MAST
MASTโ€ข13mo ago
Hey, I've found a fix for this. After I make a PR, I'll share the link here.
itsyoboieltr
itsyoboieltrโ€ข13mo ago
Thank you!!
MAST
MASTโ€ข12mo ago
GitHub
Handle the generated type when an enum is used as an array in postg...
When using postgres if you defined the column as an enum and made it an array, it would still show as an enum instead of an array of enums.
itsyoboieltr
itsyoboieltrโ€ข12mo ago
@Andrew Sherman any comments on this maybe? ๐Ÿ˜› It would be great if this pr could be merged
MAST
MASTโ€ข12mo ago
Maybe you could patch the drizzle until it gets merged? That's what I did for some of the bugs.
itsyoboieltr
itsyoboieltrโ€ข10mo ago
i did that I am just itching to take it out and finally have it merged :DD any news on this? ๐Ÿ˜› RIP drizzle-typebox
Want results from more Discord servers?
Add your server