Skip to content

Commit 97e29a5

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 5df3fdf commit 97e29a5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/Model/Search/MultipleBatchRequest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,6 @@ public function listInvalidProperties()
157157
if (!isset($this->container['action']) || null === $this->container['action']) {
158158
$invalidProperties[] = "'action' can't be null";
159159
}
160-
if (!isset($this->container['body']) || null === $this->container['body']) {
161-
$invalidProperties[] = "'body' can't be null";
162-
}
163160
if (!isset($this->container['indexName']) || null === $this->container['indexName']) {
164161
$invalidProperties[] = "'indexName' can't be null";
165162
}
@@ -205,7 +202,7 @@ public function setAction($action)
205202
/**
206203
* Gets body.
207204
*
208-
* @return object
205+
* @return null|object
209206
*/
210207
public function getBody()
211208
{
@@ -215,7 +212,7 @@ public function getBody()
215212
/**
216213
* Sets body.
217214
*
218-
* @param object $body operation arguments (varies with specified `action`)
215+
* @param null|object $body operation arguments (varies with specified `action`)
219216
*
220217
* @return self
221218
*/

0 commit comments

Comments
 (0)