Commit 5725802
fix(core): allow additional JSON Schema properties in elicitInput requestedSchema
Add .catchall(z.unknown()) to the requestedSchema object type in
ElicitRequestFormParamsSchema, matching the existing pattern used by
inputSchema and outputSchema. This fixes a type incompatibility when
passing Zod v4's .toJSONSchema() output (which includes $schema,
additionalProperties, etc.) to elicitInput's requestedSchema parameter.
Fixes #1362
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 65bbcea commit 5725802
File tree
2 files changed
+12
-5
lines changed- .changeset
- packages/core/src/types
2 files changed
+12
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1993 | 1993 | | |
1994 | 1994 | | |
1995 | 1995 | | |
1996 | | - | |
1997 | | - | |
1998 | | - | |
1999 | | - | |
2000 | | - | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
2001 | 2003 | | |
2002 | 2004 | | |
2003 | 2005 | | |
| |||
0 commit comments