From 5ca7bb338fb2f305a46c680b4ec7d9bfc9f49f97 Mon Sep 17 00:00:00 2001 From: Pete Gillin Date: Fri, 10 Oct 2025 14:00:57 +0100 Subject: [PATCH] Remove top-level `size` from `ReindexRequest` This was removed from ES in 8.0.0 (see https://github.com/elastic/elasticsearch/pull/43373). --- 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 838ba8e3eb..97458e16eb 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -36431,9 +36431,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 3010385b22..4d9f11cd9c 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -23460,9 +23460,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 5a7eb9c865..4e2a9aa6ed 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -36190,17 +36190,6 @@ } } }, - { - "name": "size", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "long", - "namespace": "_types" - } - } - }, { "description": "The source you are copying from.", "name": "source", @@ -36713,7 +36702,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 4e2dee6d52..0d1898992f 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -1015,7 +1015,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. */