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
This commit is contained in:
Zhiyuan Liang 2024-04-18 10:17:00 +08:00 коммит произвёл GitHub
Родитель 82054b1a47
Коммит 9c40d2a48d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 32 добавлений и 0 удалений

Просмотреть файл

@ -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"
}
}
}
}
}
}