diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 68498e0257..9f547371c4 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -78340,10 +78340,17 @@ } }, "data": { - "type": "array", - "items": { - "type": "string" - } + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + } + ] } } }, diff --git a/output/schema/schema.json b/output/schema/schema.json index 04c7b94a24..0639333fe0 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -180270,14 +180270,26 @@ "name": "data", "required": false, "type": { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" + "kind": "union_of", + "items": [ + { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + }, + { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } } - } + ] } } ], diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 41b3752448..d37fa536be 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -16855,7 +16855,7 @@ export interface NodesInfoNodeInfoPath { logs?: string home?: string repo?: string[] - data?: string[] + data?: string | string[] } export interface NodesInfoNodeInfoRepositories { diff --git a/specification/nodes/info/types.ts b/specification/nodes/info/types.ts index efbba52df9..1d47901284 100644 --- a/specification/nodes/info/types.ts +++ b/specification/nodes/info/types.ts @@ -159,7 +159,7 @@ export class NodeInfoPath { logs?: string home?: string repo?: string[] - data?: string[] + data?: string | string[] } export class NodeInfoRepositories {