From 6f2ecfe0db202496c68de68bccfa27780bd01407 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 8523b144b0..2ba997a8d5 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -35630,9 +35630,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 a26c2651a9..2963246808 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -22594,9 +22594,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 800fc27c24..5404f647f1 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -35873,17 +35873,6 @@ } } }, - { - "name": "size", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "long", - "namespace": "_types" - } - } - }, { "description": "The source you are copying from.", "name": "source", @@ -36400,7 +36389,7 @@ } } ], - "specLocation": "_global/reindex/ReindexRequest.ts#L27-L318" + "specLocation": "_global/reindex/ReindexRequest.ts#L27-L317" }, { "kind": "response", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 88ad2f388b..152b6596d2 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -1061,7 +1061,6 @@ export interface ReindexRequest extends RequestBase { dest: ReindexDestination max_docs?: long script?: Script | string - size?: long source: ReindexSource } } diff --git a/specification/_global/reindex/ReindexRequest.ts b/specification/_global/reindex/ReindexRequest.ts index 3b1f45d6c4..b5b38975a9 100644 --- a/specification/_global/reindex/ReindexRequest.ts +++ b/specification/_global/reindex/ReindexRequest.ts @@ -309,7 +309,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. */