From 4cfbf4f8144a581c7180baee170614c7ffde0baa Mon Sep 17 00:00:00 2001 From: magodo Date: Tue, 17 May 2022 19:30:08 +0800 Subject: [PATCH 1/2] ACI: Correct the type of httpHeaders object->array of object --- .../stable/2020-11-01/containerInstance.json | 11 +++++++---- .../stable/2021-03-01/containerInstance.json | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2020-11-01/containerInstance.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2020-11-01/containerInstance.json index ccc9d8b60a90..230cedc12573 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2020-11-01/containerInstance.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2020-11-01/containerInstance.json @@ -1145,7 +1145,10 @@ }, "httpHeaders": { "description": "The HTTP headers.", - "$ref": "#/definitions/HttpHeaders" + "type": "array", + "items": { + "$ref": "#/definitions/HttpHeader" + } } }, "required": [ @@ -1777,8 +1780,8 @@ } } }, - "HttpHeaders": { - "description": "The HTTP headers.", + "HttpHeader": { + "description": "The HTTP header.", "type": "object", "properties": { "name": { @@ -2153,4 +2156,4 @@ "x-ms-parameter-location": "method" } } -} +} \ No newline at end of file diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-03-01/containerInstance.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-03-01/containerInstance.json index 2cbac9c49984..8c61221ce82e 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-03-01/containerInstance.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-03-01/containerInstance.json @@ -1145,7 +1145,10 @@ }, "httpHeaders": { "description": "The HTTP headers.", - "$ref": "#/definitions/HttpHeaders" + "type": "array", + "items": { + "$ref": "#/definitions/HttpHeader" + } } }, "required": [ @@ -1777,8 +1780,8 @@ } } }, - "HttpHeaders": { - "description": "The HTTP headers.", + "HttpHeader": { + "description": "The HTTP header", "type": "object", "properties": { "name": { @@ -2153,4 +2156,4 @@ "x-ms-parameter-location": "method" } } -} +} \ No newline at end of file From 6b087b74897dfc76d09018683489a49e22cc9709 Mon Sep 17 00:00:00 2001 From: magodo Date: Mon, 23 May 2022 15:39:51 +0800 Subject: [PATCH 2/2] Fix lint issue && prettier --- .../stable/2020-11-01/containerInstance.json | 7 +++++-- .../stable/2021-03-01/containerInstance.json | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2020-11-01/containerInstance.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2020-11-01/containerInstance.json index 230cedc12573..9514985e540c 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2020-11-01/containerInstance.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2020-11-01/containerInstance.json @@ -1148,7 +1148,10 @@ "type": "array", "items": { "$ref": "#/definitions/HttpHeader" - } + }, + "x-ms-identifiers": [ + "name" + ] } }, "required": [ @@ -2156,4 +2159,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-03-01/containerInstance.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-03-01/containerInstance.json index 8c61221ce82e..c2bb03b8caec 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-03-01/containerInstance.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-03-01/containerInstance.json @@ -1148,7 +1148,10 @@ "type": "array", "items": { "$ref": "#/definitions/HttpHeader" - } + }, + "x-ms-identifiers": [ + "name" + ] } }, "required": [ @@ -2156,4 +2159,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +}