OpenFeature: Fix bulk evaluation request postprocessing (#108155)
This commit is contained in:
@@ -98,7 +98,7 @@ type OFREPBulkResponse struct {
|
||||
// OFREPFlag represents a single flag in the bulk response
|
||||
type OFREPFlag struct {
|
||||
Key string `json:"key"`
|
||||
Value bool `json:"value"`
|
||||
Value any `json:"value"`
|
||||
Reason string `json:"reason"`
|
||||
Variant string `json:"variant,omitempty"`
|
||||
Metadata map[string]any `json:"metadata,omitempty"`
|
||||
|
||||
@@ -80,7 +80,7 @@ ABCD = true
|
||||
|
||||
openFeatureEnabledFlags := map[string]bool{}
|
||||
for _, flag := range allFlags.Flags {
|
||||
if flag.Value {
|
||||
if v, ok := flag.Value.(bool); ok && v {
|
||||
openFeatureEnabledFlags[flag.Key] = true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user