Skip to content

Commit e71e4a4

Browse files
authored
Made AppConfig Schema (#33)
1 parent 0f1b48e commit e71e4a4

2 files changed

Lines changed: 41 additions & 22 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"definitions": {},
3+
"$schema": "http://json-schema.org/draft-07/schema#",
4+
"$id": "http://azconfig.io/schemas/FeatureManagement/v1.0.0/AppConfigurationFeatureEvaluationEvent.json",
5+
"type": "object",
6+
"title": "A Feature Evaluation Event with App Configuration Data",
7+
"allOf": [
8+
{
9+
"$ref": "FeatureEvaluationEvent.v1.0.0.schema.json"
10+
}
11+
],
12+
"required": [
13+
"AllocationId",
14+
"ETag",
15+
"FeatureFlagReference"
16+
],
17+
"properties": {
18+
"AllocationId": {
19+
"$id": "#/properties/AllocationId",
20+
"type": "string",
21+
"title": "Allocation Id",
22+
"description": "A unique identifier for the allocation of the feature flag. The value changes when any allocation of the flag changes.",
23+
"pattern": "^[A-Za-z0-9+/]*={0,2}$",
24+
"maxLength": 20
25+
},
26+
"ETag": {
27+
"$id": "#/properties/ETag",
28+
"type": "string",
29+
"title": "ETag",
30+
"description": "The ETag of the feature flag.",
31+
"pattern": "^(.*)$"
32+
},
33+
"FeatureFlagReference": {
34+
"$id": "#/properties/FeatureFlagReference",
35+
"type": "string",
36+
"format": "uri",
37+
"title": "Feature Flag Reference",
38+
"description": "The reference to the feature flag being evaluated. Example: https://{host}/kv/{feature_flag_key}."
39+
}
40+
}
41+
}

Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -77,28 +77,6 @@
7777
"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.",
7878
"minimum": 0,
7979
"maximum": 100
80-
},
81-
"AllocationId": {
82-
"$id": "#/properties/AllocationId",
83-
"type": "string",
84-
"title": "Allocation Id",
85-
"description": "A unique identifier for the allocation of the feature flag. The value changes when any allocation of the flag changes.",
86-
"pattern": "^[A-Za-z0-9+/]*={0,2}$",
87-
"maxLength": 20
88-
},
89-
"ETag": {
90-
"$id": "#/properties/ETag",
91-
"type": "string",
92-
"title": "ETag",
93-
"description": "The ETag of the feature flag.",
94-
"pattern": "^(.*)$"
95-
},
96-
"FeatureFlagReference": {
97-
"$id": "#/properties/FeatureFlagReference",
98-
"type": "string",
99-
"format": "uri",
100-
"title": "Feature Flag Reference",
101-
"description": "The reference to the feature flag being evaluated. Example: https://{host}/kv/{feature_flag_key}."
10280
}
10381
}
10482
}

0 commit comments

Comments
 (0)