Skip to content

Commit

Permalink
Merge pull request #1532 from Azure/antmarti/add_metadata
Browse files Browse the repository at this point in the history
Add metadata field to JSON schema
  • Loading branch information
anthony-c-martin authored Mar 2, 2021
2 parents ec60385 + dad3f5a commit 5b8ce6d
Show file tree
Hide file tree
Showing 21 changed files with 96 additions and 0 deletions.
5 changes: 5 additions & 0 deletions schemas/2014-04-01-preview/deploymentTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"type": "string",
"description": "JSON schema reference"
},
"metadata": {
"type": "object",
"description": "Additional unstructured metadata to include with the template deployment.",
"additionalProperties": true
},
"contentVersion": {
"type": "string",
"pattern": "(^[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+$)",
Expand Down
5 changes: 5 additions & 0 deletions schemas/2015-01-01/deploymentTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"type": "string",
"description": "JSON schema reference"
},
"metadata": {
"type": "object",
"description": "Additional unstructured metadata to include with the template deployment.",
"additionalProperties": true
},
"apiProfile": {
"type": "string",
"enum": [
Expand Down
5 changes: 5 additions & 0 deletions schemas/2018-05-01/subscriptionDeploymentTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"type": "string",
"description": "JSON schema reference"
},
"metadata": {
"type": "object",
"description": "Additional unstructured metadata to include with the template deployment.",
"additionalProperties": true
},
"apiProfile": {
"type": "string",
"enum": [
Expand Down
10 changes: 10 additions & 0 deletions schemas/2019-03-01-hybrid/deploymentTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
"type": "string",
"description": "JSON schema reference"
},
"metadata": {
"type": "object",
"description": "Additional unstructured metadata to include with the template deployment.",
"additionalProperties": true
},
"contentVersion": {
"type": "string",
"pattern": "(^[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+$)",
Expand Down Expand Up @@ -126,6 +131,11 @@
"type": "string",
"description": "JSON schema reference"
},
"metadata": {
"type": "object",
"description": "Additional unstructured metadata to include with the template deployment.",
"additionalProperties": true
},
"contentVersion": {
"type": "string",
"pattern": "(^[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+$)",
Expand Down
5 changes: 5 additions & 0 deletions schemas/2019-04-01/deploymentTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"type": "string",
"description": "JSON schema reference"
},
"metadata": {
"type": "object",
"description": "Additional unstructured metadata to include with the template deployment.",
"additionalProperties": true
},
"apiProfile": {
"type": "string",
"enum": [
Expand Down
5 changes: 5 additions & 0 deletions schemas/2019-08-01/managementGroupDeploymentTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"type": "string",
"description": "JSON schema reference"
},
"metadata": {
"type": "object",
"description": "Additional unstructured metadata to include with the template deployment.",
"additionalProperties": true
},
"apiProfile": {
"type": "string",
"enum": [
Expand Down
5 changes: 5 additions & 0 deletions schemas/2019-08-01/tenantDeploymentTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"type": "string",
"description": "JSON schema reference"
},
"metadata": {
"type": "object",
"description": "Additional unstructured metadata to include with the template deployment.",
"additionalProperties": true
},
"apiProfile": {
"type": "string",
"enum": [
Expand Down
4 changes: 4 additions & 0 deletions tools/templateTests/ManagementGroupTemplate.2019-08-01.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#",
"metadata": {
"comments": "This template was developed for schema validation purposes.",
"author": "Azure Deployments"
},
"contentVersion": "1.0.0.0",
"parameters": {
"siteName": {
Expand Down
4 changes: 4 additions & 0 deletions tools/templateTests/SubscriptionTemplate.2018-05-01.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
"metadata": {
"comments": "This template was developed for schema validation purposes.",
"author": "Azure Deployments"
},
"contentVersion": "1.0.0.0",
"parameters": {
"siteName": {
Expand Down
4 changes: 4 additions & 0 deletions tools/templateTests/Template_1.2014-01-01-preview.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$schema": "https://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
"metadata": {
"comments": "This template was developed for schema validation purposes.",
"author": "Azure Deployments"
},
"contentVersion": "1.0.0.0",
"parameters": {
"siteName": {
Expand Down
4 changes: 4 additions & 0 deletions tools/templateTests/Template_1.2015-01-01.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"metadata": {
"comments": "This template was developed for schema validation purposes.",
"author": "Azure Deployments"
},
"contentVersion": "1.0.0.0",
"parameters": {
"siteName": {
Expand Down
4 changes: 4 additions & 0 deletions tools/templateTests/Template_1.2019-03-01-hybrid.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-03-01-hybrid/deploymentTemplate.json#",
"metadata": {
"comments": "This template was developed for schema validation purposes.",
"author": "Azure Deployments"
},
"contentVersion": "1.0.0.0",
"parameters": {
"keyvaultSettings": {
Expand Down
4 changes: 4 additions & 0 deletions tools/templateTests/Template_1.2019-04-01.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"metadata": {
"comments": "This template was developed for schema validation purposes.",
"author": "Azure Deployments"
},
"contentVersion": "1.0.0.0",
"parameters": {
"siteName": {
Expand Down
4 changes: 4 additions & 0 deletions tools/templateTests/Template_2.2014-01-01-preview.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$schema": "https://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
"metadata": {
"comments": "This template was developed for schema validation purposes.",
"author": "Azure Deployments"
},
"contentVersion": "1.0.0.0",
"parameters": {
"name": {
Expand Down
4 changes: 4 additions & 0 deletions tools/templateTests/Template_2.2015-01-01.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"metadata": {
"comments": "This template was developed for schema validation purposes.",
"author": "Azure Deployments"
},
"contentVersion": "1.0.0.0",
"parameters": {
"name": {
Expand Down
4 changes: 4 additions & 0 deletions tools/templateTests/Template_2.2019-03-01-hybrid.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-03-01-hybrid/deploymentTemplate.json#",
"metadata": {
"comments": "This template was developed for schema validation purposes.",
"author": "Azure Deployments"
},
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {},
Expand Down
4 changes: 4 additions & 0 deletions tools/templateTests/Template_2.2019-04-01.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"metadata": {
"comments": "This template was developed for schema validation purposes.",
"author": "Azure Deployments"
},
"contentVersion": "1.0.0.0",
"parameters": {
"name": {
Expand Down
4 changes: 4 additions & 0 deletions tools/templateTests/Template_3.2015-01-01.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"metadata": {
"comments": "This template was developed for schema validation purposes.",
"author": "Azure Deployments"
},
"contentVersion": "1.0.0.0",
"parameters": {
"virtualNetworkName": {
Expand Down
4 changes: 4 additions & 0 deletions tools/templateTests/Template_3.2019-03-01-hybrid.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-03-01-hybrid/deploymentTemplate.json#",
"metadata": {
"comments": "This template was developed for schema validation purposes.",
"author": "Azure Deployments"
},
"contentVersion": "1.0.0.0",
"parameters": {
"adminUsername": {
Expand Down
4 changes: 4 additions & 0 deletions tools/templateTests/Template_3.2019-04-01.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"metadata": {
"comments": "This template was developed for schema validation purposes.",
"author": "Azure Deployments"
},
"contentVersion": "1.0.0.0",
"parameters": {
"virtualNetworkName": {
Expand Down
4 changes: 4 additions & 0 deletions tools/templateTests/TenantTemplate.2019-08-01.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-08-01/tenantDeploymentTemplate.json#",
"metadata": {
"comments": "This template was developed for schema validation purposes.",
"author": "Azure Deployments"
},
"contentVersion": "1.0.0.0",
"parameters": {
"siteName": {
Expand Down

0 comments on commit 5b8ce6d

Please sign in to comment.