Skip to content

Commit 8fa914a

Browse files
[8.4] Fix snapshot.get validation errors
Co-authored-by: Seth Michael Larson <[email protected]>
1 parent 65001d0 commit 8fa914a

File tree

5 files changed

+22
-12
lines changed

5 files changed

+22
-12
lines changed

output/schema/schema.json

Lines changed: 8 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/snapshot/_types/SnapshotInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class SnapshotInfo {
4646
end_time_in_millis?: EpochTime<UnitMillis>
4747
failures?: SnapshotShardFailure[]
4848
include_global_state?: boolean
49-
indices: IndexName[]
49+
indices?: IndexName[]
5050
/** @since 7.13.0 */
5151
index_details?: Dictionary<IndexName, IndexDetails>
5252
metadata?: Metadata

specification/snapshot/get/SnapshotGetRequest.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,16 @@ export interface Request extends RequestBase {
6464
* @server_default false
6565
*/
6666
index_details?: boolean
67-
human?: boolean
67+
/**
68+
* If true, returns the name of each index in each snapshot.
69+
* @since 8.3.0
70+
* @server_default true
71+
*/
72+
index_names?: boolean
73+
/**
74+
* If true, returns the repository name in each snapshot.
75+
* @server_default true
76+
*/
6877
include_repository?: boolean
6978
/**
7079
* Allows setting a sort order for the result. Defaults to start_time, i.e. sorting by snapshot start time stamp.

0 commit comments

Comments
 (0)