Repository navigation
Commit 02fa14c
refactor: avoid reassigning the renderFormFields schema parameter
renderFormFields reassigned its `propSchema` parameter (both for
normalizeUnionType and the description trim). Rename the parameter to
`rawSchema` and bind a local `propSchema` instead, so the incoming
parameter is never mutated. Pure refactor; no behavior change.
Addresses review item modelcontextprotocol#4 on modelcontextprotocol#1258.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>1 parent 28cd2a2 commit 02fa14c
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
| 312 | + | |
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| |||
0 commit comments