From 5818eeaccee51ecf120c474f6ca1216a77c740ca Mon Sep 17 00:00:00 2001 From: Zhiyuan Liang <141655842+zhiyuanliang-ms@users.noreply.github.com> Date: Wed, 21 Feb 2024 10:22:51 +0800 Subject: [PATCH] Add Feature Management schema (#871) * add feature management schema * add id * move the FeatureManagement folder * rename to Microsoft & update ref * use snake case * add description for feature_management * update --- .../FeatureManagement.v1.0.0.schema.json | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/FeatureManagement/FeatureManagement.v1.0.0.schema.json diff --git a/docs/FeatureManagement/FeatureManagement.v1.0.0.schema.json b/docs/FeatureManagement/FeatureManagement.v1.0.0.schema.json new file mode 100644 index 00000000..dbf6d97f --- /dev/null +++ b/docs/FeatureManagement/FeatureManagement.v1.0.0.schema.json @@ -0,0 +1,32 @@ +{ + "definitions": {}, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "http://azconfig.io/schemas/FeatureManagement/v1.0.0/FeatureManagement.json", + "type": "object", + "title": "The Microsoft Feature Management Schema", + "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://github.com/Azure/AppConfiguration/blob/main/docs/FeatureManagement/FeatureFlag.v1.1.0.schema.json" + } + } + } + } + } +} \ No newline at end of file