Commit f7603b3
committed
fix: normalize null to undefined in ElicitResultSchema content field
Add z.preprocess to convert null values to undefined in the content field of ElicitResultSchema for better leniency while maintaining type compatibility. Per MCP spec, content is typically omitted for decline/cancel actions.1 parent fab7e1e commit f7603b3
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1831 | 1831 | | |
1832 | 1832 | | |
1833 | 1833 | | |
| 1834 | + | |
| 1835 | + | |
1834 | 1836 | | |
1835 | | - | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
1836 | 1841 | | |
1837 | 1842 | | |
1838 | 1843 | | |
| |||
0 commit comments