diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 463440b1b4..63e0b7afd0 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -31461,13 +31461,13 @@ "schema": { "type": "object", "properties": { + "accepted": { + "type": "boolean" + }, "snapshot": { "$ref": "#/components/schemas/snapshot.restore:SnapshotRestore" } - }, - "required": [ - "snapshot" - ] + } } } } diff --git a/output/schema/schema.json b/output/schema/schema.json index e2001b2159..7faf5e4549 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -201058,9 +201058,20 @@ "body": { "kind": "properties", "properties": [ + { + "name": "accepted", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, { "name": "snapshot", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -201075,7 +201086,7 @@ "name": "Response", "namespace": "snapshot.restore" }, - "specLocation": "snapshot/restore/SnapshotRestoreResponse.ts#L23-L25" + "specLocation": "snapshot/restore/SnapshotRestoreResponse.ts#L23-L28" }, { "kind": "interface", @@ -201121,7 +201132,7 @@ } } ], - "specLocation": "snapshot/restore/SnapshotRestoreResponse.ts#L27-L31" + "specLocation": "snapshot/restore/SnapshotRestoreResponse.ts#L30-L34" }, { "kind": "request", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index aa269a64af..7c22525bc9 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -19102,7 +19102,8 @@ export interface SnapshotRestoreRequest extends RequestBase { } export interface SnapshotRestoreResponse { - snapshot: SnapshotRestoreSnapshotRestore + accepted?: boolean + snapshot?: SnapshotRestoreSnapshotRestore } export interface SnapshotRestoreSnapshotRestore { diff --git a/specification/snapshot/restore/SnapshotRestoreResponse.ts b/specification/snapshot/restore/SnapshotRestoreResponse.ts index 428036df10..bf88f771c2 100644 --- a/specification/snapshot/restore/SnapshotRestoreResponse.ts +++ b/specification/snapshot/restore/SnapshotRestoreResponse.ts @@ -21,7 +21,10 @@ import { IndexName } from '@_types/common' import { ShardStatistics } from '@_types/Stats' export class Response { - body: { snapshot: SnapshotRestore } + body: { + accepted?: boolean + snapshot?: SnapshotRestore + } } export class SnapshotRestore {