From 85b84b9720a2b360e31f5f00918c7fba61235375 Mon Sep 17 00:00:00 2001 From: Allen Humphreys Date: Thu, 3 Feb 2022 12:09:10 -0500 Subject: [PATCH 1/3] Update WebApps swagger: correct host key create/update requests --- .../stable/2021-03-01/WebApps.json | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/WebApps.json b/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/WebApps.json index bc1867636f03..e71c14bffd44 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/WebApps.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/WebApps.json @@ -23257,13 +23257,21 @@ "description": "Function key info.", "type": "object", "properties": { - "name": { - "description": "Key name", - "type": "string" - }, - "value": { - "description": "Key value", - "type": "string" + "properties": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "description": "Key name", + "type": "string" + }, + "value": { + "description": "Key value", + "type": "string" + } + } } } }, From 4ab386673defedc966cb4b0dc5d2041aec81718a Mon Sep 17 00:00:00 2001 From: Allen Humphreys Date: Thu, 3 Feb 2022 12:25:37 -0500 Subject: [PATCH 2/3] Use a top-level "name" property instead --- .../Microsoft.Web/stable/2021-03-01/WebApps.json | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/WebApps.json b/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/WebApps.json index e71c14bffd44..259e4c14e1a3 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/WebApps.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/WebApps.json @@ -23256,17 +23256,19 @@ "KeyInfo": { "description": "Function key info.", "type": "object", + "required": [ + "name", + "properties" + ], "properties": { + "name": { + "description": "Key name", + "type": "string" + }, "properties": { + "description": "Key properties", "type": "object", - "required": [ - "name" - ], "properties": { - "name": { - "description": "Key name", - "type": "string" - }, "value": { "description": "Key value", "type": "string" From 9f786eedb08659eb6b117d0aaa1ac21a57dcbddb Mon Sep 17 00:00:00 2001 From: Allen Humphreys Date: Thu, 3 Feb 2022 12:44:49 -0500 Subject: [PATCH 3/3] Remove name from required list --- .../Microsoft.Web/stable/2021-03-01/WebApps.json | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/WebApps.json b/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/WebApps.json index 259e4c14e1a3..8799e57b5179 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/WebApps.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/WebApps.json @@ -23257,7 +23257,6 @@ "description": "Function key info.", "type": "object", "required": [ - "name", "properties" ], "properties": {