Skip to content

Commit bea70c9

Browse files
authored
chore(evaluation-result): EvaluationResult improvements (#6124)
1 parent c96abeb commit bea70c9

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

sdk/evaluation-result.json

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
"required": [
3737
"feature_key",
3838
"name",
39-
"enabled"
39+
"enabled",
40+
"value",
41+
"reason"
4042
],
4143
"title": "FlagResult",
4244
"type": "object"
@@ -64,18 +66,13 @@
6466
},
6567
"description": "Evaluation result object containing the used context, flag evaluation results, and segments used in the evaluation.",
6668
"properties": {
67-
"context": {
68-
"existingJavaType": "com.flagsmith.flagengine.EvaluationContext",
69-
"goType": "evalcontext.EvaluationContext",
70-
"$ref": "https://raw.githubusercontent.com/Flagsmith/flagsmith/main/sdk/evaluation-context.json"
71-
},
7269
"flags": {
73-
"description": "List of feature flags evaluated for the context.",
74-
"items": {
70+
"description": "Feature flags evaluated for the context, mapped by feature names.",
71+
"additionalProperties": {
7572
"$ref": "#/$defs/FlagResult"
7673
},
7774
"title": "Flags",
78-
"type": "array"
75+
"type": "object"
7976
},
8077
"segments": {
8178
"description": "List of segments which the provided context belongs to.",
@@ -87,7 +84,6 @@
8784
}
8885
},
8986
"required": [
90-
"context",
9187
"flags",
9288
"segments"
9389
],

0 commit comments

Comments
 (0)