From b5b4cdeebbd977b56c7f494a9df6f5fc0a38fba3 Mon Sep 17 00:00:00 2001 From: David Turner Date: Wed, 10 Sep 2025 16:16:12 +0100 Subject: [PATCH 1/2] Update get-license default for ?local The default for the `?local` parameter to the `GET _license` API changed from `false` to `true` in elastic/elasticsearch#134457. This commit adjusts the documentation to match. --- specification/license/get/GetLicenseRequest.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/specification/license/get/GetLicenseRequest.ts b/specification/license/get/GetLicenseRequest.ts index f332aa685b..86c630ddbf 100644 --- a/specification/license/get/GetLicenseRequest.ts +++ b/specification/license/get/GetLicenseRequest.ts @@ -48,8 +48,10 @@ export interface Request extends RequestBase { */ accept_enterprise?: boolean /** - * Specifies whether to retrieve local information. The default value is `false`, which means the information is retrieved from the master node. - * @server_default false + * Specifies whether to retrieve local information. + * From 9.2 onwards the default value is `true`, which means the information is retrieved from the responding node. + * In earlier versions the default is `false`. + * @server_default true */ local?: boolean } From 02c504c2315d0b001113fb0a89c8036974604d9a Mon Sep 17 00:00:00 2001 From: David Turner Date: Wed, 10 Sep 2025 16:19:39 +0100 Subject: [PATCH 2/2] Explain false --- specification/license/get/GetLicenseRequest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/license/get/GetLicenseRequest.ts b/specification/license/get/GetLicenseRequest.ts index 86c630ddbf..cd00a7b796 100644 --- a/specification/license/get/GetLicenseRequest.ts +++ b/specification/license/get/GetLicenseRequest.ts @@ -50,7 +50,7 @@ export interface Request extends RequestBase { /** * Specifies whether to retrieve local information. * From 9.2 onwards the default value is `true`, which means the information is retrieved from the responding node. - * In earlier versions the default is `false`. + * In earlier versions the default is `false`, which means the information is retrieved from the elected master node. * @server_default true */ local?: boolean