From 97e29a51a27b27c011818ed9eed5e88037e1f824 Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Sat, 3 Aug 2024 07:29:04 +0000 Subject: [PATCH] fix(specs): body is not required in multiple batch request (generated) https://github.com/algolia/api-clients-automation/pull/3454 Co-authored-by: algolia-bot Co-authored-by: Kai Welke --- lib/Model/Search/MultipleBatchRequest.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/Model/Search/MultipleBatchRequest.php b/lib/Model/Search/MultipleBatchRequest.php index fb2e25f0..7885dbd3 100644 --- a/lib/Model/Search/MultipleBatchRequest.php +++ b/lib/Model/Search/MultipleBatchRequest.php @@ -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"; } @@ -205,7 +202,7 @@ public function setAction($action) /** * Gets body. * - * @return object + * @return null|object */ public function getBody() { @@ -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 */