Commit b37543e
fix(core): allow additional JSON Schema properties in elicitInput requestedSchema
Adds .catchall(z.unknown()) to requestedSchema, matching the pattern used
by inputSchema/outputSchema. Fixes type incompatibility when using Zod v4's
.toJSONSchema() output which includes extra properties like $schema and
additionalProperties.
Fixes #13621 parent 40174d2 commit b37543e
2 files changed
Lines changed: 12 additions & 5 deletions
| 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 | |
|---|---|---|---|
| |||
1855 | 1855 | | |
1856 | 1856 | | |
1857 | 1857 | | |
1858 | | - | |
1859 | | - | |
1860 | | - | |
1861 | | - | |
1862 | | - | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
1863 | 1865 | | |
1864 | 1866 | | |
1865 | 1867 | | |
| |||
0 commit comments