From 1183f872a48980a19208303650c5a13de0c6782e Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Fri, 22 Nov 2024 13:35:35 +0000 Subject: [PATCH] fix(specs): `nb_api_calls` in `getLogs` response is optional (generated) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/algolia/api-clients-automation/pull/4142 Co-authored-by: algolia-bot Co-authored-by: Clément Vannicatte --- lib/Model/Search/Log.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/Model/Search/Log.php b/lib/Model/Search/Log.php index e9e848f1..b1b47c64 100644 --- a/lib/Model/Search/Log.php +++ b/lib/Model/Search/Log.php @@ -278,9 +278,6 @@ public function listInvalidProperties() if (!isset($this->container['sha1']) || null === $this->container['sha1']) { $invalidProperties[] = "'sha1' can't be null"; } - if (!isset($this->container['nbApiCalls']) || null === $this->container['nbApiCalls']) { - $invalidProperties[] = "'nbApiCalls' can't be null"; - } if (!isset($this->container['processingTimeMs']) || null === $this->container['processingTimeMs']) { $invalidProperties[] = "'processingTimeMs' can't be null"; } @@ -518,7 +515,7 @@ public function setSha1($sha1) /** * Gets nbApiCalls. * - * @return string + * @return null|string */ public function getNbApiCalls() { @@ -528,7 +525,7 @@ public function getNbApiCalls() /** * Sets nbApiCalls. * - * @param string $nbApiCalls number of API requests + * @param null|string $nbApiCalls number of API requests * * @return self */