diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index b91f8a1db2..7a6aa880fa 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -32995,14 +32995,11 @@ }, { "in": "query", - "name": "node_id", + "name": "nodes", "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 08deb6b492..a9478f3d6a 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -205796,16 +205796,13 @@ }, { "description": "Comma-separated list of node IDs or names used to limit returned information.", - "name": "node_id", + "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/schema/validation-errors.json b/output/schema/validation-errors.json index 3e6e4455ba..a1ea93de9b 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -1190,9 +1190,7 @@ }, "tasks.list": { "request": [ - "Request: query parameter 'node_id' does not exist in the json spec", - "Request: query parameter 'master_timeout' does not exist in the json spec", - "Request: missing json spec query parameter 'nodes'" + "Request: query parameter 'master_timeout' does not exist in the json spec" ], "response": [] }, diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 98746f2510..0850376927 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -19555,7 +19555,7 @@ export interface TasksListRequest extends RequestBase { actions?: string | string[] detailed?: boolean group_by?: TasksGroupBy - node_id?: 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 c829cb4a2e..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. */ - node_id?: string[] + nodes?: NodeIds /** * Parent task ID used to limit returned information. To return all tasks, omit this parameter or use a value of `-1`. */