Skip to content

Commit b3d546e

Browse files
author
msftbot[bot]
authored
[ReleasePR containerinstance] ACI: Correct the type of httpHeaders object->array of object (#2392)
Create to sync Azure/azure-rest-api-specs#19103 [ReCreate this PR](https://github.com/azure-resource-manager-schemas/compare/main...azure-sdk:sdkAuto/containerinstance?expand=1)
2 parents c737889 + 9c600b5 commit b3d546e

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

schemas/2020-11-01/Microsoft.ContainerInstance.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,10 @@
398398
"httpHeaders": {
399399
"oneOf": [
400400
{
401-
"$ref": "#/definitions/HttpHeaders"
401+
"type": "array",
402+
"items": {
403+
"$ref": "#/definitions/HttpHeader"
404+
}
402405
},
403406
{
404407
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
@@ -796,7 +799,7 @@
796799
],
797800
"description": "The GPU resource."
798801
},
799-
"HttpHeaders": {
802+
"HttpHeader": {
800803
"type": "object",
801804
"properties": {
802805
"name": {
@@ -808,7 +811,7 @@
808811
"description": "The header value."
809812
}
810813
},
811-
"description": "The HTTP headers."
814+
"description": "The HTTP header."
812815
},
813816
"ImageRegistryCredential": {
814817
"type": "object",

schemas/2021-03-01/Microsoft.ContainerInstance.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,10 @@
398398
"httpHeaders": {
399399
"oneOf": [
400400
{
401-
"$ref": "#/definitions/HttpHeaders"
401+
"type": "array",
402+
"items": {
403+
"$ref": "#/definitions/HttpHeader"
404+
}
402405
},
403406
{
404407
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
@@ -796,7 +799,7 @@
796799
],
797800
"description": "The GPU resource."
798801
},
799-
"HttpHeaders": {
802+
"HttpHeader": {
800803
"type": "object",
801804
"properties": {
802805
"name": {
@@ -808,7 +811,7 @@
808811
"description": "The header value."
809812
}
810813
},
811-
"description": "The HTTP headers."
814+
"description": "The HTTP header"
812815
},
813816
"ImageRegistryCredential": {
814817
"type": "object",

0 commit comments

Comments
 (0)