From 31b8bb299cf705d9c963a2dfb736c603f47c2425 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Mon, 17 Mar 2025 10:07:44 +0400 Subject: [PATCH] Deprecate local param in indices.get_mapping --- output/openapi/elasticsearch-openapi.json | 2 +- output/openapi/elasticsearch-serverless-openapi.json | 2 +- output/schema/schema-serverless.json | 6 +++++- output/schema/schema.json | 6 +++++- .../indices/get_mapping/IndicesGetMappingRequest.ts | 1 + 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 4489db9560..5b33f00968 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -106206,7 +106206,7 @@ "in": "query", "name": "local", "description": "If `true`, the request retrieves information from the local node only.", - "deprecated": false, + "deprecated": true, "schema": { "type": "boolean" }, diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 76c7f5b9f3..58ad499a17 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -62407,7 +62407,7 @@ "in": "query", "name": "local", "description": "If `true`, the request retrieves information from the local node only.", - "deprecated": false, + "deprecated": true, "schema": { "type": "boolean" }, diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 101c2f52f6..e0433dbc27 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -23639,6 +23639,10 @@ } }, { + "deprecation": { + "description": "This parameter is a no-op and field mappings are always retrieved locally.", + "version": "7.8.0" + }, "description": "If `true`, the request retrieves information from the local node only.", "name": "local", "required": false, @@ -23665,7 +23669,7 @@ } } ], - "specLocation": "indices/get_mapping/IndicesGetMappingRequest.ts#L24-L84" + "specLocation": "indices/get_mapping/IndicesGetMappingRequest.ts#L24-L85" }, { "body": { diff --git a/output/schema/schema.json b/output/schema/schema.json index a99eee1d71..af9779738d 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -139754,6 +139754,10 @@ } }, { + "deprecation": { + "description": "This parameter is a no-op and field mappings are always retrieved locally.", + "version": "7.8.0" + }, "description": "If `true`, the request retrieves information from the local node only.", "name": "local", "required": false, @@ -139780,7 +139784,7 @@ } } ], - "specLocation": "indices/get_mapping/IndicesGetMappingRequest.ts#L24-L84" + "specLocation": "indices/get_mapping/IndicesGetMappingRequest.ts#L24-L85" }, { "kind": "response", diff --git a/specification/indices/get_mapping/IndicesGetMappingRequest.ts b/specification/indices/get_mapping/IndicesGetMappingRequest.ts index 95f8f89315..c5bc1467ee 100644 --- a/specification/indices/get_mapping/IndicesGetMappingRequest.ts +++ b/specification/indices/get_mapping/IndicesGetMappingRequest.ts @@ -71,6 +71,7 @@ export interface Request extends RequestBase { ignore_unavailable?: boolean /** * If `true`, the request retrieves information from the local node only. + * @deprecated 7.8.0 This parameter is a no-op and field mappings are always retrieved locally. * @server_default false */ local?: boolean