Skip to content

Commit 96e5f2e

Browse files
ywangdpquentin
andauthored
Add missing indices options to index recovery API (#4954)
The JSON API spec change on the ES side is elastic/elasticsearch#131490 Co-authored-by: Quentin Pradet <[email protected]>
1 parent b6972ac commit 96e5f2e

File tree

5 files changed

+110
-10
lines changed

5 files changed

+110
-10
lines changed

output/openapi/elasticsearch-openapi.json

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

output/schema/schema.json

Lines changed: 40 additions & 1 deletion
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: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
{
22
"endpointErrors": {
3-
"indices.recovery": {
4-
"request": [
5-
"Request: missing json spec query parameter 'ignore_unavailable'",
6-
"Request: missing json spec query parameter 'allow_no_indices'",
7-
"Request: missing json spec query parameter 'expand_wildcards'"
8-
],
9-
"response": []
10-
},
113
"msearch": {
124
"request": [
135
"Request: query parameter 'allow_no_indices' does not exist in the json spec",

output/typescript/types.ts

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

specification/indices/recovery/IndicesRecoveryRequest.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
import { RequestBase } from '@_types/Base'
21-
import { Indices } from '@_types/common'
21+
import { ExpandWildcards, Indices } from '@_types/common'
2222

2323
/**
2424
* Get index recovery information.
@@ -80,5 +80,23 @@ export interface Request extends RequestBase {
8080
* @server_default false
8181
*/
8282
detailed?: boolean
83+
/**
84+
* If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.
85+
* This behavior applies even if the request targets other open indices.
86+
* @server_default true
87+
*/
88+
allow_no_indices?: boolean
89+
/**
90+
* Type of index that wildcard patterns can match.
91+
* If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
92+
* Supports comma-separated values, such as `open,hidden`.
93+
* @server_default open
94+
*/
95+
expand_wildcards?: ExpandWildcards
96+
/**
97+
* If `false`, the request returns an error if it targets a missing or closed index.
98+
* @server_default false
99+
*/
100+
ignore_unavailable?: boolean
83101
}
84102
}

0 commit comments

Comments
 (0)