Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 88cf944

Browse filesBrowse files
authored
Fix: Iterate over keys in catchall object using "in" operator. (#5376)
1 parent 5e1cfcf commit 88cf944
Copy full SHA for 88cf944

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎packages/zod/src/v4/core/schemas.ts‎

Copy file name to clipboardExpand all lines: packages/zod/src/v4/core/schemas.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1783,7 +1783,7 @@ function handleCatchall(
17831783
const keySet = def.keySet;
17841784
const _catchall = def.catchall!._zod;
17851785
const t = _catchall.def.type;
1786-
for (const key of Object.keys(input)) {
1786+
for (const key in input) {
17871787
if (keySet.has(key)) continue;
17881788
if (t === "never") {
17891789
unrecognized.push(key);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.