Skip to content

Commit ad66792

Browse files
Fix expand_wildcards default values (#5599) (#5660)
* Specify default_value for expand_wildcards * Fix one default value (cherry picked from commit 245d55f) Co-authored-by: Quentin Pradet <quentin.pradet@elastic.co>
1 parent edef23b commit ad66792

File tree

21 files changed

+33
-5
lines changed

21 files changed

+33
-5
lines changed

specification/_global/msearch/MultiSearchRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export interface Request extends RequestBase {
8383
ccs_minimize_roundtrips?: boolean
8484
/**
8585
* Type of index that wildcard expressions can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
86+
* @server_default open
8687
*/
8788
expand_wildcards?: ExpandWildcards
8889
/**

specification/_global/rank_eval/RankEvalRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ export interface Request extends RequestBase {
5757
* @server_default true
5858
*/
5959
allow_no_indices?: boolean
60+
/**
61+
* @server_default open
62+
*/
6063
expand_wildcards?: ExpandWildcards
6164
/**
6265
* If `true`, missing or closed indices are not included in the response.

specification/_global/search_template/SearchTemplateRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export interface Request extends RequestBase {
7575
* The type of index that wildcard patterns can match.
7676
* If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
7777
* Supports comma-separated values, such as `open,hidden`.
78+
* @server_default open
7879
*/
7980
expand_wildcards?: ExpandWildcards
8081
/**

specification/_global/update_by_query/UpdateByQueryRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ export interface Request extends RequestBase {
190190
* The type of index that wildcard patterns can match.
191191
* If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
192192
* It supports comma-separated values, such as `open,hidden`.
193+
* @server_default open
193194
*/
194195
expand_wildcards?: ExpandWildcards
195196
/**

specification/async_search/submit/AsyncSearchSubmitRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ export interface Request extends RequestBase {
126126
default_operator?: Operator
127127
df?: string
128128
docvalue_fields?: Fields
129+
/**
130+
* @server_default open
131+
*/
129132
expand_wildcards?: ExpandWildcards
130133
explain?: boolean
131134
ignore_throttled?: boolean

specification/cat/aliases/CatAliasesRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export interface Request extends CatRequestBase {
6464
* The type of index that wildcard patterns can match.
6565
* If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
6666
* It supports comma-separated values, such as `open,hidden`.
67+
* @server_default all
6768
*/
6869
expand_wildcards?: ExpandWildcards
6970
/**

specification/cat/indices/CatIndicesRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export interface Request extends CatRequestBase {
6666
query_parameters: {
6767
/**
6868
* The type of index that wildcard patterns can match.
69+
* @server_default all
6970
*/
7071
expand_wildcards?: ExpandWildcards
7172
/** The health status used to limit returned indices. By default, the response includes indices of any health status. */

specification/cluster/health/ClusterHealthRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ export interface Request extends RequestBase {
6666
index?: Indices
6767
}
6868
query_parameters: {
69+
/**
70+
* @server_default all
71+
*/
6972
expand_wildcards?: ExpandWildcards
7073
/**
7174
* Can be one of cluster, indices or shards. Controls the details level of the health information returned.

specification/cluster/state/ClusterStateRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export interface Request extends RequestBase {
7474
query_parameters: {
7575
/** @server_default true */
7676
allow_no_indices?: boolean
77+
/** @server_default open */
7778
expand_wildcards?: ExpandWildcards
7879
/** @server_default false */
7980
flat_settings?: boolean

specification/indices/data_streams_stats/IndicesDataStreamsStatsRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export interface Request extends RequestBase {
5454
/**
5555
* Type of data stream that wildcard patterns can match.
5656
* Supports comma-separated values, such as `open,hidden`.
57-
* @server_default open
57+
* @server_default open,closed
5858
*/
5959
expand_wildcards?: ExpandWildcards
6060
}

0 commit comments

Comments
 (0)