Commit cbd5181
docs(client-sdk): the error-handling example tells the truth — VALIDATION_FAILED, and category/retryable are optional
The example printed 'VALIDATION_ERROR' where data.create's validation
failure actually emits VALIDATION_FAILED (the registered extension code;
the batch-1 rename re-spelled the example's stale value without fixing
it), and showed category/retryable as populated when no server surface
emits either field today — they are optional contract fields the SDK now
reads from the declared spot (#4006), set only when the server sends them.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018u8vDQLWPJxBWQESznDpSj1 parent 0c4f5b2 commit cbd5181
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
514 | | - | |
515 | | - | |
| 514 | + | |
516 | 515 | | |
517 | | - | |
| 516 | + | |
| 517 | + | |
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
| |||
0 commit comments