Skip to content

Commit 90f16d8

Browse files
Fix optional bodies (#5271) (#5272)
* Fix optional bodies * Mark snapshot.create/snapshot.restore bodies as optional too (cherry picked from commit 3348b2f) Co-authored-by: Quentin Pradet <[email protected]>
1 parent dbbedc6 commit 90f16d8

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
@@ -267,7 +267,7 @@ export interface Request extends RequestBase {
267267
*/
268268
with_labels?: boolean
269269
}
270-
body: {
270+
body?: {
271271
/**
272272
* Sub-aggregations for the geotile_grid.
273273
*

specification/_global/termvectors/TermVectorsRequest.ts

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

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
@@ -54,7 +54,7 @@ export interface Request extends RequestBase {
5454
*/
5555
dry_run?: boolean
5656
}
57-
body: {
57+
body?: {
5858
legacy_template_to_delete?: string
5959
node_attribute?: string
6060
}

0 commit comments

Comments
 (0)