diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index accb21fc44..432b1bb68a 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -78222,10 +78222,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 023cb6817e..ff1d368556 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -179915,14 +179915,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 3d2fcff682..313f8e8c7f 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -16827,7 +16827,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 {