Budi
Budi
Explore posts from servers
DTDrizzle Team
Created by Budi on 3/6/2025 in #help
Unexpected behaviour of drizzle-zod createInsertSchema
Deps:
"drizzle-kit": "^0.28.1",
"drizzle-orm": "^0.38.4",
"drizzle-zod": "^0.6.1",
Deps:
"drizzle-kit": "^0.28.1",
"drizzle-orm": "^0.38.4",
"drizzle-zod": "^0.6.1",
3 replies
DTDrizzle Team
Created by Budi on 3/6/2025 in #help
Unexpected behaviour of drizzle-zod createInsertSchema
And I've found that unless I extend the schema and set many of these properties to be required, the inferred schema considers nullish values acceptable for many of the properties that are set as mandatory on the Postgres schema. Why is this happening? Thank you.
3 replies