From e2169a527a4dabd33d9ed55af6c5e6029e3354ba Mon Sep 17 00:00:00 2001 From: Laura Trotta <153528055+l-trotta@users.noreply.github.com> Date: Mon, 14 Oct 2024 15:59:49 +0200 Subject: [PATCH] host array in info settings network (#3015) (cherry picked from commit 2ff2de969da7d940cac1eca2df276b3b4f5b0c71) --- output/openapi/elasticsearch-openapi.json | 12 ++++++++++- output/schema/schema.json | 25 ++++++++++++++++++----- output/typescript/types.ts | 2 +- specification/nodes/info/types.ts | 2 +- 4 files changed, 33 insertions(+), 8 deletions(-) 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 {