diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index d717e8c0de..649077ec9a 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -77772,7 +77772,17 @@ "type": "object", "properties": { "host": { - "$ref": "#/components/schemas/_types:Host" + "oneOf": [ + { + "$ref": "#/components/schemas/_types:Host" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/_types:Host" + } + } + ] } } }, diff --git a/output/schema/schema.json b/output/schema/schema.json index 0b4d6eea83..23dcebe4f6 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -179484,11 +179484,26 @@ "name": "host", "required": false, "type": { - "kind": "instance_of", - "type": { - "name": "Host", - "namespace": "_types" - } + "kind": "union_of", + "items": [ + { + "kind": "instance_of", + "type": { + "name": "Host", + "namespace": "_types" + } + }, + { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "Host", + "namespace": "_types" + } + } + } + ] } } ], diff --git a/output/typescript/types.ts b/output/typescript/types.ts index a068663683..c3780a2ad4 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -16856,7 +16856,7 @@ export interface NodesInfoNodeInfoSettingsIngest { } export interface NodesInfoNodeInfoSettingsNetwork { - host?: Host + host?: Host | Host[] } export interface NodesInfoNodeInfoSettingsNode { diff --git a/specification/nodes/info/types.ts b/specification/nodes/info/types.ts index cc74e9673e..efbba52df9 100644 --- a/specification/nodes/info/types.ts +++ b/specification/nodes/info/types.ts @@ -221,7 +221,7 @@ export class NodeInfoSettingsTransportFeatures { } export class NodeInfoSettingsNetwork { - host?: Host + host?: Host | Host[] } export class NodeInfoIngest {