From 0fd4a00ec20d5bf2679015186f5476a08a4fc530 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Mon, 13 Oct 2025 16:38:41 +0400 Subject: [PATCH] Specify more bodies as optional (#5469) Based on Elasticsearch YAML tests (cherry picked from commit 50cdd12dd69654a6aa37ac4f48ff35100014c5b2) # Conflicts: # specification/_global/search/SearchRequest.ts --- output/openapi/elasticsearch-openapi.json | 78 +++++++------------ .../elasticsearch-serverless-openapi.json | 45 ++++------- output/schema/schema.json | 52 ++++++------- .../clear_scroll/ClearScrollRequest.ts | 2 +- specification/_global/count/CountRequest.ts | 2 +- .../_global/explain/ExplainRequest.ts | 2 +- .../field_caps/FieldCapabilitiesRequest.ts | 2 +- .../OpenPointInTimeRequest.ts | 2 +- specification/_global/scroll/ScrollRequest.ts | 2 +- specification/_global/search/SearchRequest.ts | 2 +- .../update_by_query/UpdateByQueryRequest.ts | 2 +- .../ClusterAllocationExplainRequest.ts | 2 +- .../cluster/reroute/ClusterRerouteRequest.ts | 2 +- .../indices/clone/IndicesCloneRequest.ts | 2 +- .../indices/create/IndicesCreateRequest.ts | 2 +- .../rollover/IndicesRolloverRequest.ts | 2 +- .../IndicesValidateQueryRequest.ts | 2 +- .../license/post/PostLicenseRequest.ts | 2 +- .../MlDeleteExpiredDataRequest.ts | 2 +- .../ml/flush_job/MlFlushJobRequest.ts | 2 +- .../ml/get_buckets/MlGetBucketsRequest.ts | 2 +- .../ml/get_calendars/MlGetCalendarsRequest.ts | 2 +- .../get_categories/MlGetCategoriesRequest.ts | 2 +- .../MlGetInfluencersRequest.ts | 2 +- .../MlGetModelSnapshotsRequest.ts | 2 +- .../MlGetOverallBucketsRequest.ts | 2 +- .../get_records/MlGetAnomalyRecordsRequest.ts | 2 +- .../MlRevertModelSnapshotRequest.ts | 2 +- .../start_datafeed/MlStartDatafeedRequest.ts | 2 +- 29 files changed, 93 insertions(+), 134 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index a626389bc6..8523b144b0 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -5619,8 +5619,7 @@ } } } - }, - "required": true + } }, "responses": { "200": { @@ -14541,8 +14540,7 @@ } } } - }, - "required": true + } }, "responses": { "200": { @@ -28553,8 +28551,7 @@ } } } - }, - "required": true + } }, "responses": { "200": { @@ -31144,8 +31141,7 @@ } } } - }, - "required": true + } }, "responses": { "200": { @@ -31391,8 +31387,7 @@ } } } - }, - "required": true + } }, "responses": { "200": { @@ -34632,8 +34627,7 @@ } } } - }, - "required": true + } }, "responses": { "200": { @@ -50932,8 +50926,7 @@ } } } - }, - "required": true + } }, "responses": { "200": { @@ -143916,8 +143909,7 @@ } } } - }, - "required": true + } }, "cluster.allocation_explain": { "content": { @@ -143954,8 +143946,7 @@ } } } - }, - "required": true + } }, "cluster.put_component_template": { "content": { @@ -144075,8 +144066,7 @@ } } } - }, - "required": true + } }, "create": { "content": { @@ -144269,8 +144259,7 @@ } } } - }, - "required": true + } }, "field_caps": { "content": { @@ -144313,8 +144302,7 @@ } } } - }, - "required": true + } }, "fleet.msearch": { "content": { @@ -144757,8 +144745,7 @@ } } } - }, - "required": true + } }, "indices.create_from": { "content": { @@ -145173,8 +145160,7 @@ } } } - }, - "required": true + } }, "indices.shrink": { "content": { @@ -145340,8 +145326,7 @@ } } } - }, - "required": true + } }, "inference.inference": { "content": { @@ -145559,8 +145544,7 @@ } } } - }, - "required": true + } }, "mget": { "content": { @@ -145633,8 +145617,7 @@ } } } - }, - "required": true + } }, "ml.explain_data_frame_analytics": { "content": { @@ -145773,8 +145756,7 @@ } } } - }, - "required": true + } }, "ml.get_calendars": { "content": { @@ -145793,8 +145775,7 @@ } } } - }, - "required": true + } }, "ml.get_categories": { "content": { @@ -145819,8 +145800,7 @@ } } } - }, - "required": true + } }, "ml.get_influencers": { "content": { @@ -145845,8 +145825,7 @@ } } } - }, - "required": true + } }, "ml.get_model_snapshots": { "content": { @@ -145899,8 +145878,7 @@ } } } - }, - "required": true + } }, "ml.get_overall_buckets": { "content": { @@ -145967,8 +145945,7 @@ } } } - }, - "required": true + } }, "ml.get_records": { "content": { @@ -146034,8 +146011,7 @@ } } } - }, - "required": true + } }, "ml.infer_trained_model": { "content": { @@ -146476,8 +146452,7 @@ } } } - }, - "required": true + } }, "search": { "content": { @@ -146785,8 +146760,7 @@ } } } - }, - "required": true + } }, "search_application.search": { "content": { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 79c99e559e..a26c2651a9 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -7692,8 +7692,7 @@ } } } - }, - "required": true + } }, "responses": { "200": { @@ -17768,8 +17767,7 @@ } } } - }, - "required": true + } }, "responses": { "200": { @@ -19387,8 +19385,7 @@ } } } - }, - "required": true + } }, "responses": { "200": { @@ -21594,8 +21591,7 @@ } } } - }, - "required": true + } }, "responses": { "200": { @@ -28333,8 +28329,7 @@ } } } - }, - "required": true + } }, "responses": { "200": { @@ -86568,8 +86563,7 @@ } } } - }, - "required": true + } }, "cluster.put_component_template": { "content": { @@ -86689,8 +86683,7 @@ } } } - }, - "required": true + } }, "create": { "content": { @@ -86883,8 +86876,7 @@ } } } - }, - "required": true + } }, "field_caps": { "content": { @@ -86927,8 +86919,7 @@ } } } - }, - "required": true + } }, "graph.explore": { "content": { @@ -87512,8 +87503,7 @@ } } } - }, - "required": true + } }, "indices.simulate_template": { "content": { @@ -87615,8 +87605,7 @@ } } } - }, - "required": true + } }, "inference.inference": { "content": { @@ -87782,8 +87771,7 @@ } } } - }, - "required": true + } }, "ml.get_overall_buckets": { "content": { @@ -87850,8 +87838,7 @@ } } } - }, - "required": true + } }, "ml.infer_trained_model": { "content": { @@ -88224,8 +88211,7 @@ } } } - }, - "required": true + } }, "search": { "content": { @@ -88524,8 +88510,7 @@ } } } - }, - "required": true + } }, "search_application.search": { "content": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 58d4a2df82..800fc27c24 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -2238,7 +2238,7 @@ "name": "Request", "namespace": "_global.clear_scroll" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json", "text/plain" @@ -2329,7 +2329,7 @@ "name": "Request", "namespace": "cluster.allocation_explain" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -2856,7 +2856,7 @@ "name": "Request", "namespace": "cluster.reroute" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -4231,7 +4231,7 @@ "name": "Request", "namespace": "_global.count" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -5219,7 +5219,7 @@ "name": "Request", "namespace": "_global.explain" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -5336,7 +5336,7 @@ "name": "Request", "namespace": "_global.field_caps" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -6536,7 +6536,7 @@ "name": "Request", "namespace": "indices.clone" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -6621,7 +6621,7 @@ "name": "Request", "namespace": "indices.create" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -8812,7 +8812,7 @@ "name": "Request", "namespace": "indices.rollover" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -9263,7 +9263,7 @@ "name": "Request", "namespace": "indices.validate_query" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -11380,7 +11380,7 @@ "name": "Request", "namespace": "license.post" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -12110,7 +12110,7 @@ "name": "Request", "namespace": "ml.delete_expired_data" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -12565,7 +12565,7 @@ "name": "Request", "namespace": "ml.flush_job" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -12655,7 +12655,7 @@ "name": "Request", "namespace": "ml.get_buckets" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -12750,7 +12750,7 @@ "name": "Request", "namespace": "ml.get_calendars" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -12803,7 +12803,7 @@ "name": "Request", "namespace": "ml.get_categories" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -13096,7 +13096,7 @@ "name": "Request", "namespace": "ml.get_influencers" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -13327,7 +13327,7 @@ "name": "Request", "namespace": "ml.get_model_snapshots" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -13380,7 +13380,7 @@ "name": "Request", "namespace": "ml.get_overall_buckets" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -13426,7 +13426,7 @@ "name": "Request", "namespace": "ml.get_records" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -14406,7 +14406,7 @@ "name": "Request", "namespace": "ml.revert_model_snapshot" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -14544,7 +14544,7 @@ "name": "Request", "namespace": "ml.start_datafeed" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -15744,7 +15744,7 @@ "name": "Request", "namespace": "_global.open_point_in_time" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -16904,7 +16904,7 @@ "name": "Request", "namespace": "_global.scroll" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -16961,7 +16961,7 @@ "name": "Request", "namespace": "_global.search" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], @@ -23284,7 +23284,7 @@ "name": "Request", "namespace": "_global.update_by_query" }, - "requestBodyRequired": true, + "requestBodyRequired": false, "requestMediaType": [ "application/json" ], diff --git a/specification/_global/clear_scroll/ClearScrollRequest.ts b/specification/_global/clear_scroll/ClearScrollRequest.ts index ff2e53cdfd..0ea0ad6cf5 100644 --- a/specification/_global/clear_scroll/ClearScrollRequest.ts +++ b/specification/_global/clear_scroll/ClearScrollRequest.ts @@ -51,7 +51,7 @@ export interface Request extends RequestBase { */ scroll_id?: ScrollIds } - body: { + body?: { /** * The scroll IDs to clear. * To clear all scroll IDs, use `_all`. diff --git a/specification/_global/count/CountRequest.ts b/specification/_global/count/CountRequest.ts index af4202f271..d2ad039062 100644 --- a/specification/_global/count/CountRequest.ts +++ b/specification/_global/count/CountRequest.ts @@ -144,7 +144,7 @@ export interface Request extends RequestBase { */ q?: string } - body: { + body?: { /** * Defines the search query using Query DSL. A request body query cannot be used * with the `q` query string parameter. diff --git a/specification/_global/explain/ExplainRequest.ts b/specification/_global/explain/ExplainRequest.ts index 9333092ae2..efa9fbe657 100644 --- a/specification/_global/explain/ExplainRequest.ts +++ b/specification/_global/explain/ExplainRequest.ts @@ -116,7 +116,7 @@ export interface Request extends RequestBase { */ q?: string } - body: { + body?: { /** * Defines the search definition using the Query DSL. */ diff --git a/specification/_global/field_caps/FieldCapabilitiesRequest.ts b/specification/_global/field_caps/FieldCapabilitiesRequest.ts index 315c1b66f9..a65294402b 100644 --- a/specification/_global/field_caps/FieldCapabilitiesRequest.ts +++ b/specification/_global/field_caps/FieldCapabilitiesRequest.ts @@ -103,7 +103,7 @@ export interface Request extends RequestBase { */ include_empty_fields?: boolean } - body: { + body?: { /** * A list of fields to retrieve capabilities for. Wildcard (`*`) expressions are supported. * @availability stack since=8.5.0 diff --git a/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts b/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts index c935925da0..57f73828d9 100644 --- a/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts +++ b/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts @@ -118,7 +118,7 @@ export interface Request extends RequestBase { */ max_concurrent_shard_requests?: integer } - body: { + body?: { /** * Filter indices if the provided query rewrites to `match_none` on every shard. */ diff --git a/specification/_global/scroll/ScrollRequest.ts b/specification/_global/scroll/ScrollRequest.ts index 2bf16e9b46..cfca34a718 100644 --- a/specification/_global/scroll/ScrollRequest.ts +++ b/specification/_global/scroll/ScrollRequest.ts @@ -75,7 +75,7 @@ export interface Request extends RequestBase { */ rest_total_hits_as_int?: boolean } - body: { + body?: { /** * The period to retain the search context for scrolling. * @doc_id scroll-search-results diff --git a/specification/_global/search/SearchRequest.ts b/specification/_global/search/SearchRequest.ts index d528884b25..e0cbdcfe5e 100644 --- a/specification/_global/search/SearchRequest.ts +++ b/specification/_global/search/SearchRequest.ts @@ -390,7 +390,7 @@ export interface Request extends RequestBase { force_synthetic_source?: boolean } // We should keep this in sync with the multi search request body. - body: { + body?: { /** * Defines the aggregations that are run as part of the search request. * @aliases aggs */ // ES uses "aggregations" in serialization diff --git a/specification/_global/update_by_query/UpdateByQueryRequest.ts b/specification/_global/update_by_query/UpdateByQueryRequest.ts index 2f24aecf2c..819125bd15 100644 --- a/specification/_global/update_by_query/UpdateByQueryRequest.ts +++ b/specification/_global/update_by_query/UpdateByQueryRequest.ts @@ -312,7 +312,7 @@ export interface Request extends RequestBase { */ wait_for_completion?: boolean } - body: { + body?: { /** * The maximum number of documents to update. */ diff --git a/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts b/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts index 6e7deb0a83..191c2c6485 100644 --- a/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts +++ b/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts @@ -58,7 +58,7 @@ export interface Request extends RequestBase { */ master_timeout?: Duration } - body: { + body?: { /** * Specifies the node ID or the name of the node to only explain a shard that is currently located on the specified node. */ diff --git a/specification/cluster/reroute/ClusterRerouteRequest.ts b/specification/cluster/reroute/ClusterRerouteRequest.ts index 93971e7bf1..06fb169930 100644 --- a/specification/cluster/reroute/ClusterRerouteRequest.ts +++ b/specification/cluster/reroute/ClusterRerouteRequest.ts @@ -82,7 +82,7 @@ export interface Request extends RequestBase { */ timeout?: Duration } - body: { + body?: { /** * Defines the commands to perform. */ diff --git a/specification/indices/clone/IndicesCloneRequest.ts b/specification/indices/clone/IndicesCloneRequest.ts index be0b51dfe9..0a9c9d11b2 100644 --- a/specification/indices/clone/IndicesCloneRequest.ts +++ b/specification/indices/clone/IndicesCloneRequest.ts @@ -113,7 +113,7 @@ export interface Request extends RequestBase { */ wait_for_active_shards?: WaitForActiveShards } - body: { + body?: { /** * Aliases for the resulting index. */ diff --git a/specification/indices/create/IndicesCreateRequest.ts b/specification/indices/create/IndicesCreateRequest.ts index 291a2f37ea..4c12a548c7 100644 --- a/specification/indices/create/IndicesCreateRequest.ts +++ b/specification/indices/create/IndicesCreateRequest.ts @@ -87,7 +87,7 @@ export interface Request extends RequestBase { */ wait_for_active_shards?: WaitForActiveShards } - body: { + body?: { /** * Aliases for the index. */ diff --git a/specification/indices/rollover/IndicesRolloverRequest.ts b/specification/indices/rollover/IndicesRolloverRequest.ts index c20ad407bf..22a02afe76 100644 --- a/specification/indices/rollover/IndicesRolloverRequest.ts +++ b/specification/indices/rollover/IndicesRolloverRequest.ts @@ -125,7 +125,7 @@ export interface Request extends RequestBase { */ lazy?: boolean } - body: { + body?: { /** * Aliases for the target index. * Data streams do not support this parameter. diff --git a/specification/indices/validate_query/IndicesValidateQueryRequest.ts b/specification/indices/validate_query/IndicesValidateQueryRequest.ts index 2dfcec193c..be4308f114 100644 --- a/specification/indices/validate_query/IndicesValidateQueryRequest.ts +++ b/specification/indices/validate_query/IndicesValidateQueryRequest.ts @@ -113,7 +113,7 @@ export interface Request extends RequestBase { */ q?: string } - body: { + body?: { /** * Query in the Lucene query string syntax. */ diff --git a/specification/license/post/PostLicenseRequest.ts b/specification/license/post/PostLicenseRequest.ts index 2f4737cfa2..c5fb72ecff 100644 --- a/specification/license/post/PostLicenseRequest.ts +++ b/specification/license/post/PostLicenseRequest.ts @@ -60,7 +60,7 @@ export interface Request extends RequestBase { */ timeout?: Duration } - body: { + body?: { license?: License /** * A sequence of one or more JSON documents containing the license information. diff --git a/specification/ml/delete_expired_data/MlDeleteExpiredDataRequest.ts b/specification/ml/delete_expired_data/MlDeleteExpiredDataRequest.ts index 638535bc04..27c1ec28da 100644 --- a/specification/ml/delete_expired_data/MlDeleteExpiredDataRequest.ts +++ b/specification/ml/delete_expired_data/MlDeleteExpiredDataRequest.ts @@ -70,7 +70,7 @@ export interface Request extends RequestBase { */ timeout?: Duration } - body: { + body?: { /** * The desired requests per second for the deletion processes. The default * behavior is no throttling. diff --git a/specification/ml/flush_job/MlFlushJobRequest.ts b/specification/ml/flush_job/MlFlushJobRequest.ts index 225b85321a..3814d33c70 100644 --- a/specification/ml/flush_job/MlFlushJobRequest.ts +++ b/specification/ml/flush_job/MlFlushJobRequest.ts @@ -82,7 +82,7 @@ export interface Request extends RequestBase { // Also accepts `now` as a value, epoch seconds (< 10 digits) and epoch milliseconds start?: DateTime } - body: { + body?: { /** * Refer to the description for the `advance_time` query parameter. */ diff --git a/specification/ml/get_buckets/MlGetBucketsRequest.ts b/specification/ml/get_buckets/MlGetBucketsRequest.ts index f452d5a1d0..9f0168958a 100644 --- a/specification/ml/get_buckets/MlGetBucketsRequest.ts +++ b/specification/ml/get_buckets/MlGetBucketsRequest.ts @@ -104,7 +104,7 @@ export interface Request extends RequestBase { */ start?: DateTime } - body: { + body?: { /** * Refer to the description for the `anomaly_score` query parameter. * @server_default 0.0 diff --git a/specification/ml/get_calendars/MlGetCalendarsRequest.ts b/specification/ml/get_calendars/MlGetCalendarsRequest.ts index ae8a6c6383..2dd33a526d 100644 --- a/specification/ml/get_calendars/MlGetCalendarsRequest.ts +++ b/specification/ml/get_calendars/MlGetCalendarsRequest.ts @@ -56,7 +56,7 @@ export interface Request extends RequestBase { */ size?: integer } - body: { + body?: { /** This object is supported only when you omit the calendar identifier. */ page?: Page } diff --git a/specification/ml/get_categories/MlGetCategoriesRequest.ts b/specification/ml/get_categories/MlGetCategoriesRequest.ts index 7321457adf..a558d95927 100644 --- a/specification/ml/get_categories/MlGetCategoriesRequest.ts +++ b/specification/ml/get_categories/MlGetCategoriesRequest.ts @@ -72,7 +72,7 @@ export interface Request extends RequestBase { */ size?: integer } - body: { + body?: { /** * Configures pagination. * This parameter has the `from` and `size` properties. diff --git a/specification/ml/get_influencers/MlGetInfluencersRequest.ts b/specification/ml/get_influencers/MlGetInfluencersRequest.ts index 43783153f3..43c0476c82 100644 --- a/specification/ml/get_influencers/MlGetInfluencersRequest.ts +++ b/specification/ml/get_influencers/MlGetInfluencersRequest.ts @@ -95,7 +95,7 @@ export interface Request extends RequestBase { */ start?: DateTime } - body: { + body?: { /** * Configures pagination. * This parameter has the `from` and `size` properties. diff --git a/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts b/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts index cb558866bc..b7e028c000 100644 --- a/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts +++ b/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts @@ -85,7 +85,7 @@ export interface Request extends RequestBase { */ start?: DateTime } - body: { + body?: { /** * Refer to the description for the `desc` query parameter. * @server_default false diff --git a/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts b/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts index 5102e8c841..85ca6d7976 100644 --- a/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts +++ b/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts @@ -117,7 +117,7 @@ export interface Request extends RequestBase { */ top_n?: integer } - body: { + body?: { /** * Refer to the description for the `allow_no_match` query parameter. * @server_default true diff --git a/specification/ml/get_records/MlGetAnomalyRecordsRequest.ts b/specification/ml/get_records/MlGetAnomalyRecordsRequest.ts index 4be39d7d94..dea86932d0 100644 --- a/specification/ml/get_records/MlGetAnomalyRecordsRequest.ts +++ b/specification/ml/get_records/MlGetAnomalyRecordsRequest.ts @@ -99,7 +99,7 @@ export interface Request extends RequestBase { */ start?: DateTime } - body: { + body?: { /** * Refer to the description for the `desc` query parameter. * @server_default false diff --git a/specification/ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts b/specification/ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts index 4456513949..2402d673a2 100644 --- a/specification/ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts +++ b/specification/ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts @@ -67,7 +67,7 @@ export interface Request extends RequestBase { */ delete_intervening_results?: boolean } - body: { + body?: { /** * Refer to the description for the `delete_intervening_results` query parameter. * @server_default false diff --git a/specification/ml/start_datafeed/MlStartDatafeedRequest.ts b/specification/ml/start_datafeed/MlStartDatafeedRequest.ts index 407431910c..1db92aae09 100644 --- a/specification/ml/start_datafeed/MlStartDatafeedRequest.ts +++ b/specification/ml/start_datafeed/MlStartDatafeedRequest.ts @@ -86,7 +86,7 @@ export interface Request extends RequestBase { * @server_default 20s */ timeout?: Duration } - body: { + body?: { /** Refer to the description for the `end` query parameter. */ end?: DateTime // default "" /** Refer to the description for the `start` query parameter. */