From c63628d8d15784ff7b28d99229db266c94ed8579 Mon Sep 17 00:00:00 2001 From: Pete Gillin Date: Mon, 13 Oct 2025 14:24:35 +0100 Subject: [PATCH] Remove top-level `size` from `ReindexRequest` (#5471) This was removed from ES in 8.0.0 (see https://github.com/elastic/elasticsearch/pull/43373). (cherry picked from commit 263280a58bdaa8ee1061eb407bf2280bd6547207) --- output/openapi/elasticsearch-openapi.json | 3 --- .../openapi/elasticsearch-serverless-openapi.json | 3 --- output/schema/schema.json | 13 +------------ output/typescript/types.ts | 1 - specification/_global/reindex/ReindexRequest.ts | 1 - 5 files changed, 1 insertion(+), 20 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 72e724248d..0fb40a31b9 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -36461,9 +36461,6 @@ } ] }, - "size": { - "type": "number" - }, "source": { "description": "The source you are copying from.", "allOf": [ diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index d4a5eb055b..e26b00f148 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -23456,9 +23456,6 @@ } ] }, - "size": { - "type": "number" - }, "source": { "description": "The source you are copying from.", "allOf": [ diff --git a/output/schema/schema.json b/output/schema/schema.json index 7b76d29f0a..1e66103173 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -36126,17 +36126,6 @@ } } }, - { - "name": "size", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "long", - "namespace": "_types" - } - } - }, { "description": "The source you are copying from.", "name": "source", @@ -36649,7 +36638,7 @@ } } ], - "specLocation": "_global/reindex/ReindexRequest.ts#L27-L185" + "specLocation": "_global/reindex/ReindexRequest.ts#L27-L184" }, { "kind": "response", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index dc7228bcb5..a783d9f919 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -1014,7 +1014,6 @@ export interface ReindexRequest extends RequestBase { dest: ReindexDestination max_docs?: long script?: Script | ScriptSource - size?: long source: ReindexSource } } diff --git a/specification/_global/reindex/ReindexRequest.ts b/specification/_global/reindex/ReindexRequest.ts index 4a0cfacd71..902c8ea528 100644 --- a/specification/_global/reindex/ReindexRequest.ts +++ b/specification/_global/reindex/ReindexRequest.ts @@ -176,7 +176,6 @@ export interface Request extends RequestBase { * The script to run to update the document source or metadata when reindexing. */ script?: Script - size?: long /** * The source you are copying from. */