Skip to content

Commit

Permalink
fix(specs): body is not required in multiple batch request (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3454

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Kai Welke <[email protected]>
  • Loading branch information
algolia-bot and kai687 committed Aug 3, 2024
1 parent 5df3fdf commit 97e29a5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/Model/Search/MultipleBatchRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,6 @@ public function listInvalidProperties()
if (!isset($this->container['action']) || null === $this->container['action']) {
$invalidProperties[] = "'action' can't be null";
}
if (!isset($this->container['body']) || null === $this->container['body']) {
$invalidProperties[] = "'body' can't be null";
}
if (!isset($this->container['indexName']) || null === $this->container['indexName']) {
$invalidProperties[] = "'indexName' can't be null";
}
Expand Down Expand Up @@ -205,7 +202,7 @@ public function setAction($action)
/**
* Gets body.
*
* @return object
* @return null|object
*/
public function getBody()
{
Expand All @@ -215,7 +212,7 @@ public function getBody()
/**
* Sets body.
*
* @param object $body operation arguments (varies with specified `action`)
* @param null|object $body operation arguments (varies with specified `action`)
*
* @return self
*/
Expand Down

0 comments on commit 97e29a5

Please sign in to comment.