Skip to content

Commit b135023

Browse files
authored
chore(evaluation-context): Support segment metadata (#6144)
1 parent 36d97fa commit b135023

2 files changed

Lines changed: 26 additions & 6 deletions

File tree

sdk/evaluation-context.json

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,18 @@
171171
"title": "Overrides",
172172
"type": "array"
173173
},
174-
"virtual": {
175-
"description": "Indicates whether the segment is virtual (i.e., not stored in Flagsmith but provided at evaluation time).",
176-
"title": "Virtual",
177-
"type": "boolean",
178-
"default": false
174+
"metadata": {
175+
"description": "Additional metadata associated with the segment.",
176+
"additionalProperties": {
177+
"type": [
178+
"string",
179+
"number",
180+
"boolean",
181+
"null"
182+
]
183+
},
184+
"title": "Metadata",
185+
"type": "object"
179186
}
180187
},
181188
"required": [
@@ -342,4 +349,4 @@
342349
],
343350
"title": "EvaluationContext",
344351
"type": "object"
345-
}
352+
}

sdk/evaluation-result.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,19 @@
5454
"description": "Segment name.",
5555
"title": "Name",
5656
"type": "string"
57+
},
58+
"metadata": {
59+
"description": "Additional metadata associated with the segment.",
60+
"additionalProperties": {
61+
"type": [
62+
"string",
63+
"number",
64+
"boolean",
65+
"null"
66+
]
67+
},
68+
"title": "Metadata",
69+
"type": "object"
5770
}
5871
},
5972
"required": [

0 commit comments

Comments
 (0)