Skip to content

Commit 3348b2f

Browse files
authored
Fix optional bodies (#5271)
* Fix optional bodies * Mark snapshot.create/snapshot.restore bodies as optional too
1 parent 09b1498 commit 3348b2f

File tree

37 files changed

+66
-37
lines changed

37 files changed

+66
-37
lines changed

output/openapi/elasticsearch-openapi.json

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

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 9 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: 11 additions & 3 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: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_global/mtermvectors/MultiTermVectorsRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export interface Request extends RequestBase {
121121
*/
122122
version_type?: VersionType
123123
}
124-
body: {
124+
body?: {
125125
/**
126126
* An array of existing or artificial documents.
127127
*/

specification/_global/search_mvt/SearchMvtRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export interface Request extends RequestBase {
221221
*/
222222
with_labels?: boolean
223223
}
224-
body: {
224+
body?: {
225225
/**
226226
* Sub-aggregations for the geotile_grid.
227227
*

specification/_global/termvectors/TermVectorsRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export interface Request<TDocument> extends RequestBase {
167167
*/
168168
version_type?: VersionType
169169
}
170-
body: {
170+
body?: {
171171
/**
172172
* An artificial document (a document not present in the index) for which you want to retrieve term vectors.
173173
*/

specification/async_search/submit/AsyncSearchSubmitRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export interface Request extends RequestBase {
158158
from?: integer
159159
sort?: string | string[]
160160
}
161-
body: {
161+
body?: {
162162
/** @aliases aggs */
163163
aggregations?: Dictionary<string, AggregationContainer>
164164
collapse?: FieldCollapse

specification/ccr/resume_follow/ResumeFollowIndexRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export interface Request extends RequestBase {
5050
*/
5151
master_timeout?: Duration
5252
}
53-
body: {
53+
body?: {
5454
max_outstanding_read_requests?: long
5555
max_outstanding_write_requests?: long
5656
max_read_request_operation_count?: long

specification/ilm/migrate_to_data_tiers/Request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export interface Request extends RequestBase {
6262
*/
6363
master_timeout?: Duration
6464
}
65-
body: {
65+
body?: {
6666
legacy_template_to_delete?: string
6767
node_attribute?: string
6868
}

0 commit comments

Comments
 (0)