diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index db7ed6b1c7..60c66ad20c 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -33046,10 +33046,7 @@ "description": "Comma-separated list of node IDs or names used to limit returned information.", "deprecated": false, "schema": { - "type": "array", - "items": { - "type": "string" - } + "$ref": "#/components/schemas/_types:NodeIds" }, "style": "form" }, diff --git a/output/schema/schema.json b/output/schema/schema.json index 4df197a8b1..7395844be7 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -205969,13 +205969,10 @@ "name": "nodes", "required": false, "type": { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } + "kind": "instance_of", + "type": { + "name": "NodeIds", + "namespace": "_types" } } }, diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 35726a65d1..4e1be9944d 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -19562,7 +19562,7 @@ export interface TasksListRequest extends RequestBase { actions?: string | string[] detailed?: boolean group_by?: TasksGroupBy - nodes?: string[] + nodes?: NodeIds parent_task_id?: Id master_timeout?: Duration timeout?: Duration diff --git a/specification/tasks/list/ListTasksRequest.ts b/specification/tasks/list/ListTasksRequest.ts index 8a745ad620..00ba85ef35 100644 --- a/specification/tasks/list/ListTasksRequest.ts +++ b/specification/tasks/list/ListTasksRequest.ts @@ -19,7 +19,7 @@ import { GroupBy } from '@tasks/_types/GroupBy' import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, NodeIds } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -48,7 +48,7 @@ export interface Request extends RequestBase { /** * Comma-separated list of node IDs or names used to limit returned information. */ - nodes?: string[] + nodes?: NodeIds /** * Parent task ID used to limit returned information. To return all tasks, omit this parameter or use a value of `-1`. */