Skip to content

Commit 6d73ed7

Browse files
Trivial fix
1 parent a10ffef commit 6d73ed7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/codegen/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ export function resolveObjectSchema(
483483

484484
const singleBranch = (resolved.anyOf ?? resolved.oneOf)
485485
?.filter((item): item is JSONSchema7 => {
486-
if (typeof item !== "object") return false;
486+
if (!item || typeof item !== "object") return false;
487487
const s = item as JSONSchema7;
488488
// Filter out null types and `{ not: {} }` (Zod's representation of "nothing" in optional anyOf)
489489
if (s.type === "null") return false;

0 commit comments

Comments
 (0)