Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix body nullability #2464

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion specification/_global/bulk/BulkRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export interface Request<TDocument, TPartialDocument> 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, TPartialDocument> | TDocument
>
}
2 changes: 1 addition & 1 deletion specification/_global/create/CreateRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ export interface Request<TDocument> extends RequestBase {
/**
* Request body contains the JSON source for the document data.
* @codegen_name document */
body?: TDocument
body: TDocument
}
2 changes: 1 addition & 1 deletion specification/_global/index/IndexRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,5 @@ export interface Request<TDocument> extends RequestBase {
/**
* Request body contains the JSON source for the document data.
*/
body?: TDocument
body: TDocument
}
2 changes: 1 addition & 1 deletion specification/_global/msearch/MultiSearchRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ export interface Request extends RequestBase {
typed_keys?: boolean
}
/** @codegen_name searches */
body?: Array<RequestItem>
body: Array<RequestItem>
}
2 changes: 1 addition & 1 deletion specification/fleet/msearch/MultiSearchRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,5 @@ export interface Request extends RequestBase {
allow_partial_search_results?: boolean
}
/** @codegen_name searches */
body?: Array<RequestItem>
body: Array<RequestItem>
}
2 changes: 1 addition & 1 deletion specification/indices/downsample/Request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ export interface Request extends RequestBase {
target_index: IndexName
}
/** @codegen_name config */
body?: DownsampleConfig
body: DownsampleConfig
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ import { RequestBase } from '@_types/Base'
*/
export interface Request extends RequestBase {
/** @codegen_name detector */
body?: Detector
body: Detector
}
2 changes: 1 addition & 1 deletion specification/monitoring/bulk/BulkMonitoringRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export interface Request<TDocument, TPartialDocument> 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, TPartialDocument> | TDocument
>
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ export interface Request extends RequestBase {
refresh?: Refresh
}
/** @codegen_name privileges */
body?: Dictionary<string, Dictionary<string, Actions>>
body: Dictionary<string, Dictionary<string, Actions>>
}
Loading