From 4e374a01594c8a1d9256eed2cc6e0197de3c7af0 Mon Sep 17 00:00:00 2001 From: Zhiyuan Liang Date: Thu, 24 Oct 2024 16:32:59 +0800 Subject: [PATCH 1/2] add new feature evaluation event schema --- ...thAzureAppConfiguration.v1.0.0.schema.json | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Schema/FeatureEvaluationEvent/FeatureEvaluationEventWithAzureAppConfiguration.v1.0.0.schema.json diff --git a/Schema/FeatureEvaluationEvent/FeatureEvaluationEventWithAzureAppConfiguration.v1.0.0.schema.json b/Schema/FeatureEvaluationEvent/FeatureEvaluationEventWithAzureAppConfiguration.v1.0.0.schema.json new file mode 100644 index 0000000..c4c6bb7 --- /dev/null +++ b/Schema/FeatureEvaluationEvent/FeatureEvaluationEventWithAzureAppConfiguration.v1.0.0.schema.json @@ -0,0 +1,38 @@ +{ + "definitions": {}, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "http://azconfig.io/schemas/FeatureManagement/v1.0.0/FeatureEvaluationEventWithAzureAppConfiguration.json", + "type": "object", + "title": "A Feature Evaluation Event with Azure App Configuration", + "allOf": [ + { + "$ref": "https://github.com/microsoft/FeatureManagement/blob/main/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json" + } + ], + "required": [ + "FeatureFlagId", + "FeatureFlagReference", + "ETag" + ], + "properties": { + "FeatureFlagId": { + "$id": "#/properties/FeatureFlagId", + "type": "string", + "title": "Feature Flag Id", + "description": "An ID for each feature flag based on the key and label that is then hashed with SHA 256 and encoded to base64 URL." + }, + "FeatureFlagReference": { + "$id": "#/properties/FeatureFlagReference", + "type": "string", + "title": "Feature Flag Reference", + "description": "A URL used to trace back from a feature flag to a specific app configuration store it came from." + }, + "ETag": { + "$id": "#/properties/ETag", + "type": "string", + "title": "ETag", + "description": "The ETag returned as part of the configuration setting for a feature flag." + } + } +} + \ No newline at end of file From 62261e90cadb1100bdb612daca3dd54ad08cd1d8 Mon Sep 17 00:00:00 2001 From: zhiyuanliang Date: Mon, 28 Oct 2024 20:27:25 +0800 Subject: [PATCH 2/2] update tab size & use space --- ...thAzureAppConfiguration.v1.0.0.schema.json | 72 +++++++++---------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/Schema/FeatureEvaluationEvent/FeatureEvaluationEventWithAzureAppConfiguration.v1.0.0.schema.json b/Schema/FeatureEvaluationEvent/FeatureEvaluationEventWithAzureAppConfiguration.v1.0.0.schema.json index c4c6bb7..80f74b5 100644 --- a/Schema/FeatureEvaluationEvent/FeatureEvaluationEventWithAzureAppConfiguration.v1.0.0.schema.json +++ b/Schema/FeatureEvaluationEvent/FeatureEvaluationEventWithAzureAppConfiguration.v1.0.0.schema.json @@ -1,38 +1,38 @@ { - "definitions": {}, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://azconfig.io/schemas/FeatureManagement/v1.0.0/FeatureEvaluationEventWithAzureAppConfiguration.json", - "type": "object", - "title": "A Feature Evaluation Event with Azure App Configuration", - "allOf": [ - { - "$ref": "https://github.com/microsoft/FeatureManagement/blob/main/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json" - } - ], - "required": [ - "FeatureFlagId", - "FeatureFlagReference", - "ETag" - ], - "properties": { - "FeatureFlagId": { - "$id": "#/properties/FeatureFlagId", - "type": "string", - "title": "Feature Flag Id", - "description": "An ID for each feature flag based on the key and label that is then hashed with SHA 256 and encoded to base64 URL." - }, - "FeatureFlagReference": { - "$id": "#/properties/FeatureFlagReference", - "type": "string", - "title": "Feature Flag Reference", - "description": "A URL used to trace back from a feature flag to a specific app configuration store it came from." - }, - "ETag": { - "$id": "#/properties/ETag", - "type": "string", - "title": "ETag", - "description": "The ETag returned as part of the configuration setting for a feature flag." - } - } + "definitions": {}, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "http://azconfig.io/schemas/FeatureManagement/v1.0.0/FeatureEvaluationEventWithAzureAppConfiguration.json", + "type": "object", + "title": "A Feature Evaluation Event with Azure App Configuration", + "allOf": [ + { + "$ref": "https://github.com/microsoft/FeatureManagement/blob/main/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json" + } + ], + "required": [ + "FeatureFlagId", + "FeatureFlagReference", + "ETag" + ], + "properties": { + "FeatureFlagId": { + "$id": "#/properties/FeatureFlagId", + "type": "string", + "title": "Feature Flag Id", + "description": "An ID for each feature flag based on the key and label that is then hashed with SHA 256 and encoded to base64 URL." + }, + "FeatureFlagReference": { + "$id": "#/properties/FeatureFlagReference", + "type": "string", + "title": "Feature Flag Reference", + "description": "A URL used to trace back from a feature flag to a specific app configuration store it came from." + }, + "ETag": { + "$id": "#/properties/ETag", + "type": "string", + "title": "ETag", + "description": "The ETag returned as part of the configuration setting for a feature flag." + } + } } - \ No newline at end of file + \ No newline at end of file