Commit 4f37912
docs(protocol): give
`error-handling.mdx` published «Field value has wrong type» with the example
message `Field 'age' must be a number`, while `error-catalog.mdx` publishes the
name/resolution meaning. A repo-wide producer sweep finds 22 assignment sites in
5 files, all name/resolution-shaped, and none of the 14 type-shaped refusal
texts carries `INVALID_FIELD` — so the type meaning had no emitter and the
example message quoted no producer.
Rewrite only the `#### INVALID_FIELD` block: the Meaning now matches the
catalog, and the example message is the real producer text from
`packages/rest/src/error-response.ts:1655` (`Unknown field '<field>' on object
'<object>'`) with the `field`/`object` details that producer actually sets.
Status stays 400, as every producer sets and `error-response.ts` maps.
Claude-Session: https://claude.ai/code/session_012zGPuVVX3deAx9LdjK8jCk
Co-authored-by: Claude <noreply@anthropic.com>INVALID_FIELD one published meaning (#15883)1 parent 132742f commit 4f37912
1 file changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
305 | 307 | | |
306 | 308 | | |
307 | 309 | | |
308 | 310 | | |
309 | 311 | | |
310 | 312 | | |
311 | 313 | | |
312 | | - | |
| 314 | + | |
313 | 315 | | |
314 | 316 | | |
315 | | - | |
316 | | - | |
317 | | - | |
| 317 | + | |
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
323 | 328 | | |
324 | 329 | | |
325 | 330 | | |
| |||
0 commit comments