diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 3087b5fdf4..f7d166eef5 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -78352,10 +78352,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 7fa7b55def..747aa8440b 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -180296,14 +180296,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 8b06c657ad..b60a188f0c 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -16857,7 +16857,7 @@ export interface NodesInfoNodeInfoPath { logs?: string home?: string repo?: string[] - data?: string[] + data?: string | string[] } export interface NodesInfoNodeInfoRepositories {