From cb93c43102258a7d36f1436d09f2fdd8ac6788ec Mon Sep 17 00:00:00 2001 From: Matt Metcalf Date: Thu, 12 Jun 2025 10:08:12 -0700 Subject: [PATCH 1/7] Update FeatureEvaluationEvent.v1.0.0.schema.json --- .../FeatureEvaluationEvent.v1.0.0.schema.json | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json b/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json index 71c0140..fe8a4fe 100644 --- a/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json +++ b/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json @@ -56,6 +56,48 @@ "title": "Targeting Id", "description": "The targeting id used for the feature evaluation.", "pattern": "^(.*)$" + }, + "DefaultWhenEnabled": { + "$id": "#/properties/DefaultWhenEnabled", + "type": "string", + "title": "Default When Enabled", + "description": "The default variant when the feature is enabled." + }, + "Version": { + "$id": "#/properties/Version", + "type": "string", + "title": "Version", + "description": "The version of the feature evaluation event schema.", + "default": "1.0.0" + }, + "VariantAssignmentPercentage": { + "$id": "#/properties/VariantAssignmentPercentage", + "type": "number", + "title": "Variant Assignment Percentage", + "description": "The percentage of users assigned to the variant that was assigned.", + "minimum": 0, + "maximum": 100 + }, + "AllocationId": { + "$id": "#/properties/AllocationId", + "type": "string", + "title": "Allocation Id", + "description": "A unique identifier for the allocation of the feature flag. The value changes when any allocation of the flag changes.", + "pattern": "^(.*)$" + }, + "ETag": { + "$id": "#/properties/ETag", + "type": "string", + "title": "ETag", + "description": "The ETag of the feature flag.", + "pattern": "^(.*)$" + }, + "FeatureFlagReference": { + "$id": "#/properties/FeatureFlagReference", + "type": "string", + "title": "Feature Flag Reference", + "description": "The reference to the feature flag being evaluated.{endpoint}/kv{feature_flag_key}, plus ?label={feature_flag_label} when a label is specified.", + "pattern": "^(.*)$" } } } From 38e5411ff095cc337fef3ebb6b69ffd533cc81f7 Mon Sep 17 00:00:00 2001 From: Matthew Metcalf Date: Mon, 16 Jun 2025 09:51:08 -0700 Subject: [PATCH 2/7] Update Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json Co-authored-by: Jimmy Campbell --- .../FeatureEvaluationEvent.v1.0.0.schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json b/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json index fe8a4fe..96ef0b8 100644 --- a/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json +++ b/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json @@ -96,7 +96,7 @@ "$id": "#/properties/FeatureFlagReference", "type": "string", "title": "Feature Flag Reference", - "description": "The reference to the feature flag being evaluated.{endpoint}/kv{feature_flag_key}, plus ?label={feature_flag_label} when a label is specified.", + "description": "The reference to the feature flag being evaluated. Example: https://{host}/kv/{feature_flag_key}.", "pattern": "^(.*)$" } } From 24c4b0b10681ca18841fc90346255b27b7867930 Mon Sep 17 00:00:00 2001 From: Matt Metcalf Date: Mon, 16 Jun 2025 10:08:51 -0700 Subject: [PATCH 3/7] Updated Variant Assignment Percentage description --- .../FeatureEvaluationEvent.v1.0.0.schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json b/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json index 96ef0b8..810d8ff 100644 --- a/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json +++ b/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json @@ -74,7 +74,7 @@ "$id": "#/properties/VariantAssignmentPercentage", "type": "number", "title": "Variant Assignment Percentage", - "description": "The percentage of users assigned to the variant that was assigned.", + "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.", "minimum": 0, "maximum": 100 }, From 41350bc9d6fdc4a26adfe33b06df8be78c1f4f61 Mon Sep 17 00:00:00 2001 From: Matt Metcalf Date: Mon, 16 Jun 2025 10:45:05 -0700 Subject: [PATCH 4/7] Update FeatureEvaluationEvent.v1.0.0.schema.json --- .../FeatureEvaluationEvent.v1.0.0.schema.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json b/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json index 810d8ff..91d2289 100644 --- a/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json +++ b/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json @@ -96,8 +96,7 @@ "$id": "#/properties/FeatureFlagReference", "type": "string", "title": "Feature Flag Reference", - "description": "The reference to the feature flag being evaluated. Example: https://{host}/kv/{feature_flag_key}.", - "pattern": "^(.*)$" + "description": "The reference to the feature flag being evaluated. Example: https://{host}/kv/{feature_flag_key}." } } } From ab129e46f7284366d65b5b555501c5377b13eb09 Mon Sep 17 00:00:00 2001 From: Matt Metcalf Date: Mon, 16 Jun 2025 11:20:25 -0700 Subject: [PATCH 5/7] Update FeatureEvaluationEvent.v1.0.0.schema.json --- .../FeatureEvaluationEvent.v1.0.0.schema.json | 1 + 1 file changed, 1 insertion(+) diff --git a/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json b/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json index 91d2289..8b8da64 100644 --- a/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json +++ b/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json @@ -95,6 +95,7 @@ "FeatureFlagReference": { "$id": "#/properties/FeatureFlagReference", "type": "string", + "format": "uri", "title": "Feature Flag Reference", "description": "The reference to the feature flag being evaluated. Example: https://{host}/kv/{feature_flag_key}." } From acbf9d62363ad77b7399d139ea0d27756764ef6f Mon Sep 17 00:00:00 2001 From: Matt Metcalf Date: Mon, 16 Jun 2025 11:29:56 -0700 Subject: [PATCH 6/7] Update FeatureEvaluationEvent.v1.0.0.schema.json --- .../FeatureEvaluationEvent.v1.0.0.schema.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json b/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json index 8b8da64..e33255b 100644 --- a/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json +++ b/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json @@ -83,7 +83,8 @@ "type": "string", "title": "Allocation Id", "description": "A unique identifier for the allocation of the feature flag. The value changes when any allocation of the flag changes.", - "pattern": "^(.*)$" + "pattern": "^[A-Za-z0-9+/]*={0,2}$", + "maxLength": 15 }, "ETag": { "$id": "#/properties/ETag", From 33f0b1e56dbf612619d82c264b197a68846aa553 Mon Sep 17 00:00:00 2001 From: Matt Metcalf Date: Mon, 16 Jun 2025 12:29:19 -0700 Subject: [PATCH 7/7] Update FeatureEvaluationEvent.v1.0.0.schema.json --- .../FeatureEvaluationEvent.v1.0.0.schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json b/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json index e33255b..4e1da1a 100644 --- a/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json +++ b/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json @@ -84,7 +84,7 @@ "title": "Allocation Id", "description": "A unique identifier for the allocation of the feature flag. The value changes when any allocation of the flag changes.", "pattern": "^[A-Za-z0-9+/]*={0,2}$", - "maxLength": 15 + "maxLength": 20 }, "ETag": { "$id": "#/properties/ETag",