diff --git a/specification/_global/bulk/BulkRequest.ts b/specification/_global/bulk/BulkRequest.ts index d212e71bac..e03923ab3b 100644 --- a/specification/_global/bulk/BulkRequest.ts +++ b/specification/_global/bulk/BulkRequest.ts @@ -97,7 +97,7 @@ export interface Request extends RequestBase { // This declaration captures action_and_meta_data (OperationContainer) and the two kinds of sources // that can follow: an update action for update operations and anything for index or create operations. // /!\ must be kept in sync with BulkMonitoringRequest - body?: Array< + body: Array< OperationContainer | UpdateAction | TDocument > } diff --git a/specification/_global/create/CreateRequest.ts b/specification/_global/create/CreateRequest.ts index 31badee6d4..212a22a3cf 100644 --- a/specification/_global/create/CreateRequest.ts +++ b/specification/_global/create/CreateRequest.ts @@ -91,5 +91,5 @@ export interface Request extends RequestBase { /** * Request body contains the JSON source for the document data. * @codegen_name document */ - body?: TDocument + body: TDocument } diff --git a/specification/_global/index/IndexRequest.ts b/specification/_global/index/IndexRequest.ts index 4056890c48..0dac654546 100644 --- a/specification/_global/index/IndexRequest.ts +++ b/specification/_global/index/IndexRequest.ts @@ -113,5 +113,5 @@ export interface Request extends RequestBase { /** * Request body contains the JSON source for the document data. */ - body?: TDocument + body: TDocument } diff --git a/specification/_global/msearch/MultiSearchRequest.ts b/specification/_global/msearch/MultiSearchRequest.ts index a4394c6af5..030f95101b 100644 --- a/specification/_global/msearch/MultiSearchRequest.ts +++ b/specification/_global/msearch/MultiSearchRequest.ts @@ -92,5 +92,5 @@ export interface Request extends RequestBase { typed_keys?: boolean } /** @codegen_name searches */ - body?: Array + body: Array } diff --git a/specification/fleet/msearch/MultiSearchRequest.ts b/specification/fleet/msearch/MultiSearchRequest.ts index aa99552f7e..759da03855 100644 --- a/specification/fleet/msearch/MultiSearchRequest.ts +++ b/specification/fleet/msearch/MultiSearchRequest.ts @@ -111,5 +111,5 @@ export interface Request extends RequestBase { allow_partial_search_results?: boolean } /** @codegen_name searches */ - body?: Array + body: Array } diff --git a/specification/indices/downsample/Request.ts b/specification/indices/downsample/Request.ts index c3b30b1baf..b603bf1d60 100644 --- a/specification/indices/downsample/Request.ts +++ b/specification/indices/downsample/Request.ts @@ -40,5 +40,5 @@ export interface Request extends RequestBase { target_index: IndexName } /** @codegen_name config */ - body?: DownsampleConfig + body: DownsampleConfig } diff --git a/specification/ml/validate_detector/MlValidateDetectorRequest.ts b/specification/ml/validate_detector/MlValidateDetectorRequest.ts index 8c2656fe75..fc586c5fb2 100644 --- a/specification/ml/validate_detector/MlValidateDetectorRequest.ts +++ b/specification/ml/validate_detector/MlValidateDetectorRequest.ts @@ -27,5 +27,5 @@ import { RequestBase } from '@_types/Base' */ export interface Request extends RequestBase { /** @codegen_name detector */ - body?: Detector + body: Detector } diff --git a/specification/monitoring/bulk/BulkMonitoringRequest.ts b/specification/monitoring/bulk/BulkMonitoringRequest.ts index 44c5543940..0aee558b84 100644 --- a/specification/monitoring/bulk/BulkMonitoringRequest.ts +++ b/specification/monitoring/bulk/BulkMonitoringRequest.ts @@ -53,7 +53,7 @@ export interface Request extends RequestBase { /** @codegen_name operations */ // BulkMonitoringRequest accepts a body request that has the same format as the BulkRequest // See BulkRequest for additional notes. - body?: Array< + body: Array< OperationContainer | UpdateAction | TDocument > } diff --git a/specification/security/put_privileges/SecurityPutPrivilegesRequest.ts b/specification/security/put_privileges/SecurityPutPrivilegesRequest.ts index 62f05af563..ea5414d537 100644 --- a/specification/security/put_privileges/SecurityPutPrivilegesRequest.ts +++ b/specification/security/put_privileges/SecurityPutPrivilegesRequest.ts @@ -33,5 +33,5 @@ export interface Request extends RequestBase { refresh?: Refresh } /** @codegen_name privileges */ - body?: Dictionary> + body: Dictionary> }