From c31f397f3ba59f5726dda49c1ba2e9b61a653b65 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Mon, 7 Jul 2025 18:04:09 +0400 Subject: [PATCH] Fix type query paramter in license.post_start_trial (#4807) (cherry picked from commit b8eac9dda35dc64e784a40efa1b82993698ce488) --- output/openapi/elasticsearch-openapi.json | 3 ++- output/schema/schema.json | 3 ++- output/schema/validation-errors.json | 7 ------- output/typescript/types.ts | 2 +- .../license/post_start_trial/StartTrialLicenseRequest.ts | 2 +- 5 files changed, 6 insertions(+), 11 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index cedee4a480..73c73431d6 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -22001,7 +22001,8 @@ }, { "in": "query", - "name": "type_query_string", + "name": "type", + "description": "The type of trial license to generate (default: \"trial\")", "deprecated": false, "schema": { "type": "string" diff --git a/output/schema/schema.json b/output/schema/schema.json index ebe0d172c1..9b2e7a7e27 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -182489,7 +182489,8 @@ } }, { - "name": "type_query_string", + "description": "The type of trial license to generate (default: \"trial\")", + "name": "type", "required": false, "type": { "kind": "instance_of", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 829c2c8dc3..a1e5347665 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -61,13 +61,6 @@ ], "response": [] }, - "license.post_start_trial": { - "request": [ - "Request: query parameter 'type_query_string' does not exist in the json spec", - "Request: missing json spec query parameter 'type'" - ], - "response": [] - }, "msearch": { "request": [ "Request: query parameter 'allow_no_indices' does not exist in the json spec", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index a84fde9660..666e08e6d7 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -15203,7 +15203,7 @@ export interface LicensePostStartBasicResponse { export interface LicensePostStartTrialRequest extends RequestBase { acknowledge?: boolean - type_query_string?: string + type?: string master_timeout?: Duration } diff --git a/specification/license/post_start_trial/StartTrialLicenseRequest.ts b/specification/license/post_start_trial/StartTrialLicenseRequest.ts index ba1b56f738..ad33b3072a 100644 --- a/specification/license/post_start_trial/StartTrialLicenseRequest.ts +++ b/specification/license/post_start_trial/StartTrialLicenseRequest.ts @@ -42,7 +42,7 @@ export interface Request extends RequestBase { ] query_parameters: { acknowledge?: boolean - type_query_string?: string + type?: string /** * Period to wait for a connection to the master node. * @server_default 30s