We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a10ffef commit 6d73ed7Copy full SHA for 6d73ed7
1 file changed
scripts/codegen/utils.ts
@@ -483,7 +483,7 @@ export function resolveObjectSchema(
483
484
const singleBranch = (resolved.anyOf ?? resolved.oneOf)
485
?.filter((item): item is JSONSchema7 => {
486
- if (typeof item !== "object") return false;
+ if (!item || typeof item !== "object") return false;
487
const s = item as JSONSchema7;
488
// Filter out null types and `{ not: {} }` (Zod's representation of "nothing" in optional anyOf)
489
if (s.type === "null") return false;
0 commit comments