© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•2y ago
Liam

Drizzle-Zod Set Default Minimum Length For Text / No Empty Strings

Hello!

I am using drizzle zod to validate some input, at the moment the schema for any
text
text
columns allows empty strings. I would like to require that all strings cannnot be empty. Is there any way to do this without having to manually define each column as
z.string().min(1)
z.string().min(1)
?

Thanks!
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

how do i setup a minimum length drizzle schema for sqlite
Drizzle TeamDTDrizzle Team / help
9mo ago
Drizzle-Zod
Drizzle TeamDTDrizzle Team / help
9mo ago
Using default with `text` json mode creates empty `DEFAULT`
Drizzle TeamDTDrizzle Team / help
2y ago
Drizzle-zod errors
Drizzle TeamDTDrizzle Team / help
2y ago