This commit is contained in:
Ryan J. Dillon 2025-07-07 07:19:41 +00:00 committed by GitHub
commit 3fbb2c4636
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -521,7 +521,7 @@ export namespace Provider {
for (const [key, value] of Object.entries(shape)) {
const zodValue = value as z.ZodTypeAny
if (zodValue instanceof z.ZodOptional) {
newShape[key] = zodValue.unwrap().nullable()
newShape[key] = zodValue.unwrap().nullable().optional()
} else {
newShape[key] = optionalToNullable(zodValue)
}