From c26e44fbf8f7132035adf914c146c39a3ca142c5 Mon Sep 17 00:00:00 2001 From: Matt Metcalf Date: Thu, 19 Jun 2025 09:45:44 -0700 Subject: [PATCH 1/3] Made AppConfig Schema --- ...onFeatureEvaluationEventv1.0.0.schema.json | 41 +++++++++++++++++++ .../FeatureEvaluationEvent.v1.0.0.schema.json | 22 ---------- 2 files changed, 41 insertions(+), 22 deletions(-) create mode 100644 Schema/FeatureEvaluationEvent/AppConfigurationFeatureEvaluationEventv1.0.0.schema.json diff --git a/Schema/FeatureEvaluationEvent/AppConfigurationFeatureEvaluationEventv1.0.0.schema.json b/Schema/FeatureEvaluationEvent/AppConfigurationFeatureEvaluationEventv1.0.0.schema.json new file mode 100644 index 0000000..9fcdffb --- /dev/null +++ b/Schema/FeatureEvaluationEvent/AppConfigurationFeatureEvaluationEventv1.0.0.schema.json @@ -0,0 +1,41 @@ +{ + "definitions": {}, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "http://azconfig.io/schemas/FeatureManagement/v1.0.0/AppConfigurationFeatureEvaluationEvent.json", + "type": "object", + "title": "A Feature Evaluation Event with App Configuration Data", + "allOf": [ + { + "$ref": "FeatureEvaluationEvent.v1.0.0.schema.json" + } + ], + "required": [ + "AllocationId", + "ETag", + "FeatureFlagReference" + ], + "properties": { + "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": "^[A-Za-z0-9+/]*={0,2}$", + "maxLength": 20 + }, + "ETag": { + "$id": "#/properties/ETag", + "type": "string", + "title": "ETag", + "description": "The ETag of the feature flag.", + "pattern": "^(.*)$" + }, + "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}." + } + } +} diff --git a/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json b/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json index 4e1da1a..83eda14 100644 --- a/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json +++ b/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json @@ -77,28 +77,6 @@ "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 - }, - "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": "^[A-Za-z0-9+/]*={0,2}$", - "maxLength": 20 - }, - "ETag": { - "$id": "#/properties/ETag", - "type": "string", - "title": "ETag", - "description": "The ETag of the feature flag.", - "pattern": "^(.*)$" - }, - "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 9b2756b48d9c2a77cc56ab5ba1c67586b7966e33 Mon Sep 17 00:00:00 2001 From: Matt Metcalf Date: Tue, 8 Jul 2025 11:35:06 -0700 Subject: [PATCH 2/3] Missing. --- ... => AppConfigurationFeatureEvaluationEvent.v1.0.0.schema.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Schema/FeatureEvaluationEvent/{AppConfigurationFeatureEvaluationEventv1.0.0.schema.json => AppConfigurationFeatureEvaluationEvent.v1.0.0.schema.json} (100%) diff --git a/Schema/FeatureEvaluationEvent/AppConfigurationFeatureEvaluationEventv1.0.0.schema.json b/Schema/FeatureEvaluationEvent/AppConfigurationFeatureEvaluationEvent.v1.0.0.schema.json similarity index 100% rename from Schema/FeatureEvaluationEvent/AppConfigurationFeatureEvaluationEventv1.0.0.schema.json rename to Schema/FeatureEvaluationEvent/AppConfigurationFeatureEvaluationEvent.v1.0.0.schema.json From 8b6481555e744037a63ff5a6ef199bb5bb9a03df Mon Sep 17 00:00:00 2001 From: Matt Metcalf Date: Tue, 8 Jul 2025 11:37:35 -0700 Subject: [PATCH 3/3] Delete AppConfigurationFeatureEvaluationEventv1.0.0.schema.json --- ...onFeatureEvaluationEventv1.0.0.schema.json | 41 ------------------- 1 file changed, 41 deletions(-) delete mode 100644 Schema/FeatureEvaluationEvent/AppConfigurationFeatureEvaluationEventv1.0.0.schema.json diff --git a/Schema/FeatureEvaluationEvent/AppConfigurationFeatureEvaluationEventv1.0.0.schema.json b/Schema/FeatureEvaluationEvent/AppConfigurationFeatureEvaluationEventv1.0.0.schema.json deleted file mode 100644 index 9fcdffb..0000000 --- a/Schema/FeatureEvaluationEvent/AppConfigurationFeatureEvaluationEventv1.0.0.schema.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "definitions": {}, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://azconfig.io/schemas/FeatureManagement/v1.0.0/AppConfigurationFeatureEvaluationEvent.json", - "type": "object", - "title": "A Feature Evaluation Event with App Configuration Data", - "allOf": [ - { - "$ref": "FeatureEvaluationEvent.v1.0.0.schema.json" - } - ], - "required": [ - "AllocationId", - "ETag", - "FeatureFlagReference" - ], - "properties": { - "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": "^[A-Za-z0-9+/]*={0,2}$", - "maxLength": 20 - }, - "ETag": { - "$id": "#/properties/ETag", - "type": "string", - "title": "ETag", - "description": "The ETag of the feature flag.", - "pattern": "^(.*)$" - }, - "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}." - } - } -}