From 4838e253231a88a93422b8dd9623f6b16df1806d Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Wed, 13 Aug 2025 15:23:21 +0100 Subject: [PATCH 1/2] Updates the method of `ping` from `HEAD` to `OPTIONS` Fixes: https://github.com/elastic/elasticsearch/issues/97613#issuecomment-1633891769 --- specification/_global/ping/PingRequest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/_global/ping/PingRequest.ts b/specification/_global/ping/PingRequest.ts index 5d6e45ac2f..3b17eb602a 100644 --- a/specification/_global/ping/PingRequest.ts +++ b/specification/_global/ping/PingRequest.ts @@ -32,7 +32,7 @@ export interface Request extends RequestBase { urls: [ { path: '/' - methods: ['HEAD'] + methods: ['OPTIONS'] } ] } From 7e1d4d908b36bf2861c02537e2f3e00743925fa1 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Wed, 13 Aug 2025 15:42:44 +0100 Subject: [PATCH 2/2] Updates output --- output/openapi/elasticsearch-openapi.json | 2 +- output/openapi/elasticsearch-serverless-openapi.json | 2 +- output/schema/schema.json | 2 +- output/schema/validation-errors.json | 9 ++++++++- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index c16ad24c9b..b8e9079cd2 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -23499,7 +23499,7 @@ } ] }, - "head": { + "options": { "tags": [ "cluster" ], diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 9307996615..19600f8721 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -14141,7 +14141,7 @@ } ] }, - "head": { + "options": { "tags": [ "cluster" ], diff --git a/output/schema/schema.json b/output/schema/schema.json index b94ed9793b..9ac4ab23d8 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -16382,7 +16382,7 @@ "urls": [ { "methods": [ - "HEAD" + "OPTIONS" ], "path": "/" } diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 025ac49656..ed8d80d64b 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -1,5 +1,12 @@ { - "endpointErrors": {}, + "endpointErrors": { + "ping": { + "request": [ + "/: different http methods in the json spec" + ], + "response": [] + } + }, "generalErrors": [ "Dangling type '_global.scripts_painless_execute:PainlessExecutionPosition'", "Dangling type '_global.scripts_painless_execute:PainlessScript'",