mirror of
https://github.com/sst/opencode.git
synced 2025-07-07 16:14:59 +00:00
Merge c72ae70a4a
into d87922c0eb
This commit is contained in:
commit
3fbb2c4636
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue