Skip to content

Commit 0f1b48e

Browse files
mrm9084jimmyca15
andauthored
FeatureEvaluationEvent .v1.0.0 schema (#32)
* Update FeatureEvaluationEvent.v1.0.0.schema.json * Update Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json Co-authored-by: Jimmy Campbell <jimmyca@microsoft.com> * Updated Variant Assignment Percentage description * Update FeatureEvaluationEvent.v1.0.0.schema.json * Update FeatureEvaluationEvent.v1.0.0.schema.json * Update FeatureEvaluationEvent.v1.0.0.schema.json * Update FeatureEvaluationEvent.v1.0.0.schema.json --------- Co-authored-by: Jimmy Campbell <jimmyca@microsoft.com>
1 parent 1121c3b commit 0f1b48e

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,49 @@
5656
"title": "Targeting Id",
5757
"description": "The targeting id used for the feature evaluation.",
5858
"pattern": "^(.*)$"
59+
},
60+
"DefaultWhenEnabled": {
61+
"$id": "#/properties/DefaultWhenEnabled",
62+
"type": "string",
63+
"title": "Default When Enabled",
64+
"description": "The default variant when the feature is enabled."
65+
},
66+
"Version": {
67+
"$id": "#/properties/Version",
68+
"type": "string",
69+
"title": "Version",
70+
"description": "The version of the feature evaluation event schema.",
71+
"default": "1.0.0"
72+
},
73+
"VariantAssignmentPercentage": {
74+
"$id": "#/properties/VariantAssignmentPercentage",
75+
"type": "number",
76+
"title": "Variant Assignment Percentage",
77+
"description": "The percentage of users assigned to the variant that was assigned. This field is optional and only emitted when the assignment reason is DefaultWhenEnabled or Percentile.",
78+
"minimum": 0,
79+
"maximum": 100
80+
},
81+
"AllocationId": {
82+
"$id": "#/properties/AllocationId",
83+
"type": "string",
84+
"title": "Allocation Id",
85+
"description": "A unique identifier for the allocation of the feature flag. The value changes when any allocation of the flag changes.",
86+
"pattern": "^[A-Za-z0-9+/]*={0,2}$",
87+
"maxLength": 20
88+
},
89+
"ETag": {
90+
"$id": "#/properties/ETag",
91+
"type": "string",
92+
"title": "ETag",
93+
"description": "The ETag of the feature flag.",
94+
"pattern": "^(.*)$"
95+
},
96+
"FeatureFlagReference": {
97+
"$id": "#/properties/FeatureFlagReference",
98+
"type": "string",
99+
"format": "uri",
100+
"title": "Feature Flag Reference",
101+
"description": "The reference to the feature flag being evaluated. Example: https://{host}/kv/{feature_flag_key}."
59102
}
60103
}
61104
}

0 commit comments

Comments
 (0)