Commit 19ebbcb
Validate PrepareRequest.schema is 0 or 1 at construction
PrepareRequest was the only message with a user-settable schema field that
accepted arbitrary values. Invalid schema values would be packed into the
wire header and only rejected by the server, with no client-side error.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e744be7 commit 19ebbcb
2 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
147 | 149 | | |
148 | 150 | | |
149 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
129 | 139 | | |
130 | 140 | | |
131 | 141 | | |
| |||
0 commit comments