Commit 4033069
[release/v1.2] fix: validate projection engineVersion and V2 trackEmittedStreams combo (#391)
* fix: validate projection engineVersion and V2 trackEmittedStreams combo
Reject engineVersion values outside the documented set (0/1/2) and the
V2 + trackEmittedStreams combination before sending the request.
* fix: deliver projection validation error via exceptional completion
Match how server-side failures of the same condition surface; keep the
public CompletableFuture API free of synchronous throws.
* style: rename failed future variable to result for consistency
---------
Co-authored-by: William Chong <william-chong@outlook.com>1 parent 1e20ae0 commit 4033069
2 files changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
32 | 39 | | |
33 | 40 | | |
34 | 41 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
| |||
0 commit comments