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
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)
?
Thanks!0 Replies