From 9c40d2a48dd8e5dbed21638343b8f05dd4a69c0b Mon Sep 17 00:00:00 2001 From: Zhiyuan Liang <141655842+zhiyuanliang-ms@users.noreply.github.com> Date: Thu, 18 Apr 2024 10:17:00 +0800 Subject: [PATCH] Update Microsoft FeatureManagement schema (#895) * Update Microsoft FeatureManagement schema Update the feature flag schema reference to v2 * add missed required property * add FM v2 schema * enabled not required --- .../FeatureManagement.v2.0.0.schema.json | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/FeatureManagement/FeatureManagement.v2.0.0.schema.json diff --git a/docs/FeatureManagement/FeatureManagement.v2.0.0.schema.json b/docs/FeatureManagement/FeatureManagement.v2.0.0.schema.json new file mode 100644 index 0000000..52b2a7b --- /dev/null +++ b/docs/FeatureManagement/FeatureManagement.v2.0.0.schema.json @@ -0,0 +1,32 @@ +{ + "definitions": {}, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "http://azconfig.io/schemas/FeatureManagement/v2.0.0/FeatureManagement.json", + "type": "object", + "title": "A Microsoft Feature Management Configuration", + "required": [ + "feature_management" + ], + "properties": { + "feature_management":{ + "$id": "#/properties/feature_management", + "type": "object", + "title": "Feature Management", + "description": "Declares feature management configuration.", + "required": [ + "feature_flags" + ], + "properties": { + "feature_flags": { + "$id": "#/properties/feature_management/properties/feature_flags", + "type": "array", + "title": "Feature Flags", + "description": "Declares feature flags based on Microsoft Feature Flag schema.", + "items": { + "$ref": "https://raw.githubusercontent.com/Azure/AppConfiguration/main/docs/FeatureManagement/FeatureFlag.v2.0.0.schema.json" + } + } + } + } + } +}