From c31f775cb0efd11e252640bd086cd913f482ec71 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Tue, 24 Sep 2024 20:35:25 +0400 Subject: [PATCH] Fix snapshot.create response (#2931) (cherry picked from commit 030df6b812378057b900c4b46d9c6149be29e385) --- output/openapi/elasticsearch-openapi.json | 4 ++++ output/schema/schema.json | 13 ++++++++++++- output/typescript/types.ts | 1 + .../snapshot/_types/SnapshotShardFailure.ts | 1 + 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 35a985a32c..10ad080648 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -85248,6 +85248,9 @@ "shard_id": { "$ref": "#/components/schemas/_types:Id" }, + "index_uuid": { + "$ref": "#/components/schemas/_types:Id" + }, "status": { "type": "string" } @@ -85256,6 +85259,7 @@ "index", "reason", "shard_id", + "index_uuid", "status" ] }, diff --git a/output/schema/schema.json b/output/schema/schema.json index 9f78607065..f0c54569cd 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -198811,6 +198811,17 @@ } } }, + { + "name": "index_uuid", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "Id", + "namespace": "_types" + } + } + }, { "name": "status", "required": true, @@ -198823,7 +198834,7 @@ } } ], - "specLocation": "snapshot/_types/SnapshotShardFailure.ts#L22-L28" + "specLocation": "snapshot/_types/SnapshotShardFailure.ts#L22-L29" }, { "kind": "interface", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index e6d7d32eea..8c0ad23dc4 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -18901,6 +18901,7 @@ export interface SnapshotSnapshotShardFailure { node_id?: Id reason: string shard_id: Id + index_uuid: Id status: string } diff --git a/specification/snapshot/_types/SnapshotShardFailure.ts b/specification/snapshot/_types/SnapshotShardFailure.ts index 937d40f47b..7ff44344a2 100644 --- a/specification/snapshot/_types/SnapshotShardFailure.ts +++ b/specification/snapshot/_types/SnapshotShardFailure.ts @@ -24,5 +24,6 @@ export class SnapshotShardFailure { node_id?: Id reason: string shard_id: Id + index_uuid: Id status: string }