Commit fecd9e0
committed
fix(flagd): RPC Object resolver tolerates missing value field
MessageToDict drops the value field entirely for DISABLED responses (no value is sent). Fall back to the caller's default_value via .get() instead of raising KeyError; the substitution branch then surfaces the default with reason=DISABLED.
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>1 parent eb41c48 commit fecd9e0
1 file changed
Lines changed: 5 additions & 3 deletions
File tree
- providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
399 | | - | |
400 | | - | |
401 | | - | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
402 | 404 | | |
403 | 405 | | |
404 | 406 | | |
| |||
0 commit comments