Skip to content

Commit 42fa429

Browse files
algolia-botkai687
andcommitted
fix(specs): body is not required in multiple batch request (generated)
algolia/api-clients-automation#3454 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Kai Welke <[email protected]>
1 parent ebddd68 commit 42fa429

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

packages/client_search/lib/src/model/multiple_batch_request.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ final class MultipleBatchRequest {
1111
/// Returns a new [MultipleBatchRequest] instance.
1212
const MultipleBatchRequest({
1313
required this.action,
14-
required this.body,
14+
this.body,
1515
required this.indexName,
1616
});
1717

@@ -20,7 +20,7 @@ final class MultipleBatchRequest {
2020

2121
/// Operation arguments (varies with specified `action`).
2222
@JsonKey(name: r'body')
23-
final Object body;
23+
final Object? body;
2424

2525
/// Index name (case-sensitive).
2626
@JsonKey(name: r'indexName')

packages/client_search/lib/src/model/multiple_batch_request.g.dart

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

0 commit comments

Comments
 (0)