Commit 1c9765a
committed
fix(adaptive): keep string key_strategy inputs serializable
Address CodeRabbit review on #818.
- `ResponseCacheConfig.to_dict()` in Python no longer raises `AttributeError`
when `key_strategy` is a plain wire string. Enum members serialize through
`.value`; strings pass through unchanged so unsupported values reach native
validation with the `response_cache.unsupported_key_strategy` diagnostic,
matching the Go string alias and the Node.js runtime.
- Drop the stale "exact-match" wording from the two `response_cache` doc
comments in `crates/adaptive/src/config.rs`.
User-facing docs stay deferred to #819.
Signed-off-by: Zhongxuan (Daniel) Wang <52872691+ZhongxuanWang@users.noreply.github.com>1 parent 6c08e10 commit 1c9765a
2 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
423 | 427 | | |
424 | 428 | | |
425 | 429 | | |
| |||
0 commit comments