Skip to content

Commit a9d5429

Browse files
Add metadata field to JSON schema
1 parent fe0972d commit a9d5429

21 files changed

+88
-0
lines changed

schemas/2014-04-01-preview/deploymentTemplate.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"type": "string",
1010
"description": "JSON schema reference"
1111
},
12+
"metadata": {
13+
"type": "object",
14+
"additionalProperties": true
15+
},
1216
"contentVersion": {
1317
"type": "string",
1418
"pattern": "(^[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+$)",

schemas/2015-01-01/deploymentTemplate.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"type": "string",
1010
"description": "JSON schema reference"
1111
},
12+
"metadata": {
13+
"type": "object",
14+
"additionalProperties": true
15+
},
1216
"apiProfile": {
1317
"type": "string",
1418
"enum": [

schemas/2018-05-01/subscriptionDeploymentTemplate.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"type": "string",
1010
"description": "JSON schema reference"
1111
},
12+
"metadata": {
13+
"type": "object",
14+
"additionalProperties": true
15+
},
1216
"apiProfile": {
1317
"type": "string",
1418
"enum": [

schemas/2019-03-01-hybrid/deploymentTemplate.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
"type": "string",
1212
"description": "JSON schema reference"
1313
},
14+
"metadata": {
15+
"type": "object",
16+
"additionalProperties": true
17+
},
1418
"contentVersion": {
1519
"type": "string",
1620
"pattern": "(^[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+$)",
@@ -126,6 +130,10 @@
126130
"type": "string",
127131
"description": "JSON schema reference"
128132
},
133+
"metadata": {
134+
"type": "object",
135+
"additionalProperties": true
136+
},
129137
"contentVersion": {
130138
"type": "string",
131139
"pattern": "(^[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+$)",

schemas/2019-04-01/deploymentTemplate.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"type": "string",
1010
"description": "JSON schema reference"
1111
},
12+
"metadata": {
13+
"type": "object",
14+
"additionalProperties": true
15+
},
1216
"apiProfile": {
1317
"type": "string",
1418
"enum": [

schemas/2019-08-01/managementGroupDeploymentTemplate.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"type": "string",
1010
"description": "JSON schema reference"
1111
},
12+
"metadata": {
13+
"type": "object",
14+
"additionalProperties": true
15+
},
1216
"apiProfile": {
1317
"type": "string",
1418
"enum": [

schemas/2019-08-01/tenantDeploymentTemplate.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"type": "string",
1010
"description": "JSON schema reference"
1111
},
12+
"metadata": {
13+
"type": "object",
14+
"additionalProperties": true
15+
},
1216
"apiProfile": {
1317
"type": "string",
1418
"enum": [

tools/templateTests/ManagementGroupTemplate.2019-08-01.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
"$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#",
3+
"metadata": {
4+
"comments": "This template was developed for schema validation purposes.",
5+
"author": "Azure Deployments"
6+
},
37
"contentVersion": "1.0.0.0",
48
"parameters": {
59
"siteName": {

tools/templateTests/SubscriptionTemplate.2018-05-01.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
3+
"metadata": {
4+
"comments": "This template was developed for schema validation purposes.",
5+
"author": "Azure Deployments"
6+
},
37
"contentVersion": "1.0.0.0",
48
"parameters": {
59
"siteName": {

tools/templateTests/Template_1.2014-01-01-preview.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
"$schema": "https://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
3+
"metadata": {
4+
"comments": "This template was developed for schema validation purposes.",
5+
"author": "Azure Deployments"
6+
},
37
"contentVersion": "1.0.0.0",
48
"parameters": {
59
"siteName": {

0 commit comments

Comments
 (0)