Skip to content

Commit 9a62306

Browse files
Add epacCloudEnvironments validation (#1016)
1 parent c874c80 commit 9a62306

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

Schemas/policy-assignment-schema.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,16 @@
99
"type": "object"
1010
},
1111
"epacCloudEnvironments": {
12-
"type": "object"
12+
"type": "array",
13+
"maxItems": 3,
14+
"uniqueItems": true,
15+
"items": {
16+
"enum": [
17+
"AzureCloud",
18+
"AzureChinaCloud",
19+
"AzureUSGovernment"
20+
]
21+
}
1322
},
1423
"definitionEntry": {
1524
"type": "object",

Schemas/policy-definition-schema.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@
2828
},
2929
"category": {
3030
"type": "string"
31+
},
32+
"epacCloudEnvironments": {
33+
"type": "array",
34+
"maxItems": 3,
35+
"uniqueItems": true,
36+
"items": {
37+
"enum": [
38+
"AzureCloud",
39+
"AzureChinaCloud",
40+
"AzureUSGovernment"
41+
]
42+
}
3143
}
3244
},
3345
"required": [

Schemas/policy-set-definition-schema.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@
2828
},
2929
"category": {
3030
"type": "string"
31+
},
32+
"epacCloudEnvironments": {
33+
"type": "array",
34+
"maxItems": 3,
35+
"uniqueItems": true,
36+
"items": {
37+
"enum": [
38+
"AzureCloud",
39+
"AzureChinaCloud",
40+
"AzureUSGovernment"
41+
]
42+
}
3143
}
3244
},
3345
"required": [

0 commit comments

Comments
 (0)