Skip to content

Commit 1183f87

Browse files
fix(specs): nb_api_calls in getLogs response is optional (generated)
algolia/api-clients-automation#4142 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 4e6a429 commit 1183f87

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/Model/Search/Log.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,6 @@ public function listInvalidProperties()
278278
if (!isset($this->container['sha1']) || null === $this->container['sha1']) {
279279
$invalidProperties[] = "'sha1' can't be null";
280280
}
281-
if (!isset($this->container['nbApiCalls']) || null === $this->container['nbApiCalls']) {
282-
$invalidProperties[] = "'nbApiCalls' can't be null";
283-
}
284281
if (!isset($this->container['processingTimeMs']) || null === $this->container['processingTimeMs']) {
285282
$invalidProperties[] = "'processingTimeMs' can't be null";
286283
}
@@ -518,7 +515,7 @@ public function setSha1($sha1)
518515
/**
519516
* Gets nbApiCalls.
520517
*
521-
* @return string
518+
* @return null|string
522519
*/
523520
public function getNbApiCalls()
524521
{
@@ -528,7 +525,7 @@ public function getNbApiCalls()
528525
/**
529526
* Sets nbApiCalls.
530527
*
531-
* @param string $nbApiCalls number of API requests
528+
* @param null|string $nbApiCalls number of API requests
532529
*
533530
* @return self
534531
*/

0 commit comments

Comments
 (0)