From dcb95bfa8b8205e539b174bf437ecfd324045374 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Thu, 20 Nov 2025 17:45:40 +0400 Subject: [PATCH] Fix required parameters (#5704) (cherry picked from commit d34294854bded7c8a428c7ed13e69a293929ddc1) --- .../DeleteByQueryRethrottleRequest.ts | 2 +- .../_global/reindex_rethrottle/ReindexRethrottleRequest.ts | 2 +- .../UpdateByQueryRethrottleRequest.ts | 3 +-- .../delete_dangling_index/DeleteDanglingIndexRequest.ts | 3 ++- .../import_dangling_index/ImportDanglingIndexRequest.ts | 3 ++- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/specification/_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts b/specification/_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts index 972b7feaff..e98ff6eba7 100644 --- a/specification/_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts +++ b/specification/_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts @@ -50,6 +50,6 @@ export interface Request extends RequestBase { * The throttle for this request in sub-requests per second. * To disable throttling, set it to `-1`. */ - requests_per_second?: float + requests_per_second: float } } diff --git a/specification/_global/reindex_rethrottle/ReindexRethrottleRequest.ts b/specification/_global/reindex_rethrottle/ReindexRethrottleRequest.ts index 027aaa5e17..8d49812825 100644 --- a/specification/_global/reindex_rethrottle/ReindexRethrottleRequest.ts +++ b/specification/_global/reindex_rethrottle/ReindexRethrottleRequest.ts @@ -58,6 +58,6 @@ export interface Request extends RequestBase { * The throttle for this request in sub-requests per second. * It can be either `-1` to turn off throttling or any decimal number like `1.7` or `12` to throttle to that level. */ - requests_per_second?: float + requests_per_second: float } } diff --git a/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts b/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts index 44ebc92830..5e37131147 100644 --- a/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts +++ b/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts @@ -49,8 +49,7 @@ export interface Request extends RequestBase { /** * The throttle for this request in sub-requests per second. * To turn off throttling, set it to `-1`. - * @server_default -1 */ - requests_per_second?: float + requests_per_second: float } } diff --git a/specification/dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts b/specification/dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts index 119704ce6c..2f798884af 100644 --- a/specification/dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts +++ b/specification/dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts @@ -48,8 +48,9 @@ export interface Request extends RequestBase { query_parameters: { /** * This parameter must be set to true to acknowledge that it will no longer be possible to recove data from the dangling index. + * @server_default false */ - accept_data_loss: boolean + accept_data_loss?: boolean /** * @server_default 30s */ diff --git a/specification/dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts b/specification/dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts index 3715c1fb02..21c4e97314 100644 --- a/specification/dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts +++ b/specification/dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts @@ -49,8 +49,9 @@ export interface Request extends RequestBase { /** * This parameter must be set to true to import a dangling index. * Because Elasticsearch cannot know where the dangling index data came from or determine which shard copies are fresh and which are stale, it cannot guarantee that the imported data represents the latest state of the index when it was last in the cluster. + * @server_default false */ - accept_data_loss: boolean + accept_data_loss?: boolean /** * @server_default 30s */