Skip to content

Commit 97b9da4

Browse files
authored
chore(evaluation-context): Freeform feature values (#6075)
1 parent 64e7bb0 commit 97b9da4

2 files changed

Lines changed: 23 additions & 9 deletions

File tree

sdk/evaluation-context.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,14 @@
4949
"value": {
5050
"description": "A default environment value for the feature. If the feature is multivariate, this will be the control value.",
5151
"title": "Value",
52-
"type": "string"
52+
"type": [
53+
"string",
54+
"number",
55+
"boolean",
56+
"object",
57+
"array",
58+
"null"
59+
]
5360
},
5461
"variants": {
5562
"description": "An array of environment default values associated with the feature. Contains a single value for standard features, or multiple values for multivariate features.",
@@ -81,7 +88,14 @@
8188
"value": {
8289
"description": "The value of the feature.",
8390
"title": "Value",
84-
"type": "string"
91+
"type": [
92+
"string",
93+
"number",
94+
"boolean",
95+
"object",
96+
"array",
97+
"null"
98+
]
8599
},
86100
"weight": {
87101
"description": "The weight of the feature value variant, as a percentage number (i.e. 100.0).",

sdk/evaluation-result.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
"value": {
2121
"description": "Feature flag value.",
2222
"title": "Value",
23-
"anyOf": [
24-
{
25-
"type": "string"
26-
},
27-
{
28-
"type": "null"
29-
}
23+
"type": [
24+
"string",
25+
"number",
26+
"boolean",
27+
"object",
28+
"array",
29+
"null"
3030
]
3131
},
3232
"reason": {

0 commit comments

Comments
 (0)