From 9c600b5e4451d5b1648e318e7a21fa1519c579db Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 27 May 2022 01:28:20 +0000 Subject: [PATCH] CodeGen from PR 19103 in Azure/azure-rest-api-specs ACI: Correct the type of httpHeaders object->array of object (#19103) * ACI: Correct the type of httpHeaders object->array of object * Fix lint issue && prettier --- schemas/2020-11-01/Microsoft.ContainerInstance.json | 9 ++++++--- schemas/2021-03-01/Microsoft.ContainerInstance.json | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/schemas/2020-11-01/Microsoft.ContainerInstance.json b/schemas/2020-11-01/Microsoft.ContainerInstance.json index 562815e1ea..cdac4f02c7 100644 --- a/schemas/2020-11-01/Microsoft.ContainerInstance.json +++ b/schemas/2020-11-01/Microsoft.ContainerInstance.json @@ -398,7 +398,10 @@ "httpHeaders": { "oneOf": [ { - "$ref": "#/definitions/HttpHeaders" + "type": "array", + "items": { + "$ref": "#/definitions/HttpHeader" + } }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" @@ -796,7 +799,7 @@ ], "description": "The GPU resource." }, - "HttpHeaders": { + "HttpHeader": { "type": "object", "properties": { "name": { @@ -808,7 +811,7 @@ "description": "The header value." } }, - "description": "The HTTP headers." + "description": "The HTTP header." }, "ImageRegistryCredential": { "type": "object", diff --git a/schemas/2021-03-01/Microsoft.ContainerInstance.json b/schemas/2021-03-01/Microsoft.ContainerInstance.json index 934acb4947..e695dd8cc3 100644 --- a/schemas/2021-03-01/Microsoft.ContainerInstance.json +++ b/schemas/2021-03-01/Microsoft.ContainerInstance.json @@ -398,7 +398,10 @@ "httpHeaders": { "oneOf": [ { - "$ref": "#/definitions/HttpHeaders" + "type": "array", + "items": { + "$ref": "#/definitions/HttpHeader" + } }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" @@ -796,7 +799,7 @@ ], "description": "The GPU resource." }, - "HttpHeaders": { + "HttpHeader": { "type": "object", "properties": { "name": { @@ -808,7 +811,7 @@ "description": "The header value." } }, - "description": "The HTTP headers." + "description": "The HTTP header" }, "ImageRegistryCredential": { "type": "object",