Repository navigation
Commit e46bee5
fix(contracts): a null model selection options value is treated as omitted
MCP tools advertise ModelSelection.options as an unconstrained value, so
clients that fill optional fields with null send `options: null`. The decode
transform forwarded that null to the wire schema, which only accepts an array
or a legacy object, and the call failed with "Expected array | object".
Treat null like an omitted options field.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent d01b92c commit e46bee5
2 files changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
35 | 49 | | |
36 | 50 | | |
37 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments