Commit 9bf0ab9
committed
fix(contracts): make AuthAccessStreamError wire-compatible across versions
The schema changed from { message } to { operation, cause } without
backward compatibility, breaking schema decoding when client and server
versions are mismatched during rolling deployments.
Follow the same pattern as EnvironmentHttpInternalServerError:
- Keep message: Schema.String in the schema (always on the wire)
- Make operation optional for decode (old payloads only have message)
- Remove cause from the schema (avoid exposing internal errors)
- Use a custom constructor that requires operation and computes message1 parent 7d654e4 commit 9bf0ab9
1 file changed
Lines changed: 19 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
294 | 299 | | |
295 | | - | |
296 | | - | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
297 | 311 | | |
298 | 312 | | |
299 | 313 | | |
| |||
0 commit comments