Skip to content

Commit b4d7702

Browse files
lanejclaude
andcommitted
fix: replace .loose() with .passthrough() in Zod schema
The .loose() method doesn't exist in Zod - replace with .passthrough() to allow additional properties in the anthropicStreamEventSchema. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0d3c786 commit b4d7702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/anthropic-response.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const anthropicStreamEventSchema = z
6363
"message_stop",
6464
]),
6565
})
66-
.loose()
66+
.passthrough()
6767

6868
function isValidAnthropicStreamEvent(payload: unknown): boolean {
6969
return anthropicStreamEventSchema.safeParse(payload).success

0 commit comments

Comments
 (0)