From d5b438a14c907e457cc3130ed7e94a1b7d3cbdd2 Mon Sep 17 00:00:00 2001 From: Lei Ni <7233663+leni-msft@users.noreply.github.com> Date: Thu, 25 Feb 2021 15:27:35 +0800 Subject: [PATCH] Restore hotfix (#12411) * Revert "Remove $ref from apimanagement examples" This reverts commit 041424ecac074b5f9d6eccd41d6aefb35cdb9e8f. * update apimanagement readme.azureresourceschema.md * manually restore for 2020-12-01 example --- .../ApiManagementCreateContentType.json | 27 ++++++++++++++----- .../examples/ApiManagementGetContentType.json | 9 +++++-- .../ApiManagementListContentTypes.json | 9 +++++-- .../ApiManagementCreateContentType.json | 27 ++++++++++++++----- .../ApiManagementListContentTypes.json | 9 +++++-- .../ApiManagementCreateContentType.json | 9 +++++-- 6 files changed, 70 insertions(+), 20 deletions(-) diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/examples/ApiManagementCreateContentType.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/examples/ApiManagementCreateContentType.json index 8834d81790cb..3cf06c82f045 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/examples/ApiManagementCreateContentType.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/examples/ApiManagementCreateContentType.json @@ -12,6 +12,12 @@ "schema": { "properties": { "en_us": { + "$ref": "#/definitions/metadata" + } + }, + "additionalProperties": false, + "definitions": { + "metadata": { "type": "object", "properties": { "title": { @@ -51,8 +57,7 @@ "documentId" ] } - }, - "additionalProperties": false + } }, "version": "1.0.0" } @@ -70,6 +75,12 @@ "schema": { "properties": { "en_us": { + "$ref": "#/definitions/metadata" + } + }, + "additionalProperties": false, + "definitions": { + "metadata": { "type": "object", "properties": { "title": { @@ -109,8 +120,7 @@ "documentId" ] } - }, - "additionalProperties": false + } }, "version": "1.0.0" } @@ -127,6 +137,12 @@ "schema": { "properties": { "en_us": { + "$ref": "#/definitions/metadata" + } + }, + "additionalProperties": false, + "definitions": { + "metadata": { "type": "object", "properties": { "title": { @@ -166,8 +182,7 @@ "documentId" ] } - }, - "additionalProperties": false + } }, "version": "1.0.0" } diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/examples/ApiManagementGetContentType.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/examples/ApiManagementGetContentType.json index 3cbf82f676cb..29df6bd12047 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/examples/ApiManagementGetContentType.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/examples/ApiManagementGetContentType.json @@ -18,6 +18,12 @@ "schema": { "properties": { "en_us": { + "$ref": "#/definitions/metadata" + } + }, + "additionalProperties": false, + "definitions": { + "metadata": { "type": "object", "properties": { "title": { @@ -57,8 +63,7 @@ "documentId" ] } - }, - "additionalProperties": false + } }, "version": "1.0.0" } diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/examples/ApiManagementListContentTypes.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/examples/ApiManagementListContentTypes.json index 077412fcfbd1..38d5274c8ad4 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/examples/ApiManagementListContentTypes.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/examples/ApiManagementListContentTypes.json @@ -19,6 +19,12 @@ "schema": { "properties": { "en_us": { + "$ref": "#/definitions/metadata" + } + }, + "additionalProperties": false, + "definitions": { + "metadata": { "type": "object", "properties": { "title": { @@ -58,8 +64,7 @@ "documentId" ] } - }, - "additionalProperties": false + } }, "version": "1.0.0" } diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-12-01/examples/ApiManagementCreateContentType.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-12-01/examples/ApiManagementCreateContentType.json index 8ff951e395bc..1ef1cbc9f30f 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-12-01/examples/ApiManagementCreateContentType.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-12-01/examples/ApiManagementCreateContentType.json @@ -12,6 +12,12 @@ "schema": { "properties": { "en_us": { + "$ref": "#/definitions/metadata" + } + }, + "additionalProperties": false, + "definitions": { + "metadata": { "type": "object", "properties": { "title": { @@ -51,8 +57,7 @@ "documentId" ] } - }, - "additionalProperties": false + } }, "version": "1.0.0" } @@ -70,6 +75,12 @@ "schema": { "properties": { "en_us": { + "$ref": "#/definitions/metadata" + } + }, + "additionalProperties": false, + "definitions": { + "metadata": { "type": "object", "properties": { "title": { @@ -109,8 +120,7 @@ "documentId" ] } - }, - "additionalProperties": false + } }, "version": "1.0.0" } @@ -127,6 +137,12 @@ "schema": { "properties": { "en_us": { + "$ref": "#/definitions/metadata" + } + }, + "additionalProperties": false, + "definitions": { + "metadata": { "type": "object", "properties": { "title": { @@ -166,8 +182,7 @@ "documentId" ] } - }, - "additionalProperties": false + } }, "version": "1.0.0" } diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-12-01/examples/ApiManagementListContentTypes.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-12-01/examples/ApiManagementListContentTypes.json index fe7ccc552877..4a008fed1b45 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-12-01/examples/ApiManagementListContentTypes.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-12-01/examples/ApiManagementListContentTypes.json @@ -19,6 +19,12 @@ "schema": { "properties": { "en_us": { + "$ref": "#/definitions/metadata" + } + }, + "additionalProperties": false, + "definitions": { + "metadata": { "type": "object", "properties": { "title": { @@ -58,8 +64,7 @@ "documentId" ] } - }, - "additionalProperties": false + } }, "version": "1.0.0" } diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2020-12-01/examples/ApiManagementCreateContentType.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2020-12-01/examples/ApiManagementCreateContentType.json index e8632babad92..5a0de75a8fdd 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2020-12-01/examples/ApiManagementCreateContentType.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2020-12-01/examples/ApiManagementCreateContentType.json @@ -12,6 +12,12 @@ "schema": { "properties": { "en_us": { + "$ref": "#/definitions/metadata" + } + }, + "additionalProperties": false, + "definitions": { + "metadata": { "type": "object", "properties": { "title": { @@ -51,8 +57,7 @@ "documentId" ] } - }, - "additionalProperties": false + } }, "version": "1.0.0" }