diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 3eb7b30f18..be19a2e845 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -77816,7 +77816,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 33eea4b44d..9958cefae0 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -179613,11 +179613,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 5c05a722cd..3b070f349f 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -16865,7 +16865,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 {