diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index ec0392bf52..c1fbb01939 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -78217,10 +78217,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 a06f2f730e..842f17a4b4 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -179990,14 +179990,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 0cefa51352..96ce608d89 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -16834,7 +16834,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 {