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โ€ข15mo ago
Hey, I've found a fix for this. After I make a PR, I'll share the link here.
itsyoboieltr
itsyoboieltrOPโ€ข15mo ago
Thank you!!
MAST
MASTโ€ข15mo 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
itsyoboieltrOPโ€ข14mo ago
@Andrew Sherman any comments on this maybe? ๐Ÿ˜› It would be great if this pr could be merged
MAST
MASTโ€ข14mo ago
Maybe you could patch the drizzle until it gets merged? That's what I did for some of the bugs.
itsyoboieltr
itsyoboieltrOPโ€ข13mo 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