Skip to content

Commit a541347

Browse files
authored
Fix expand_wildcards default values (#5599) (#5661)
* Specify default_value for expand_wildcards * Fix one default value (cherry picked from commit 245d55f) # Conflicts: # specification/indices/delete_data_stream_options/IndicesDeleteDataStreamOptionsRequest.ts
1 parent 9951ea1 commit a541347

File tree

20 files changed

+30
-5
lines changed

20 files changed

+30
-5
lines changed

specification/_global/msearch/MultiSearchRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export interface Request extends RequestBase {
7777
ccs_minimize_roundtrips?: boolean
7878
/**
7979
* 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.
80+
* @server_default open
8081
*/
8182
expand_wildcards?: ExpandWildcards
8283
/**

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
@@ -73,6 +73,7 @@ export interface Request extends RequestBase {
7373
* The type of index that wildcard patterns can match.
7474
* If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
7575
* Supports comma-separated values, such as `open,hidden`.
76+
* @server_default open
7677
*/
7778
expand_wildcards?: ExpandWildcards
7879
/**

specification/_global/update_by_query/UpdateByQueryRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ export interface Request extends RequestBase {
180180
* The type of index that wildcard patterns can match.
181181
* If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
182182
* It supports comma-separated values, such as `open,hidden`.
183+
* @server_default open
183184
*/
184185
expand_wildcards?: ExpandWildcards
185186
/**

specification/async_search/submit/AsyncSearchSubmitRequest.ts

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

specification/cat/aliases/CatAliasesRequest.ts

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

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)