Skip to content

Commit 12506af

Browse files
committed
Fix number type for some api responses
1 parent a31b7a8 commit 12506af

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

openapi.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ components:
209209
type: string
210210
description: Error message
211211
code:
212-
type: number
212+
type: integer
213213
format: int32
214214
description: An error code
215215
required:
@@ -243,7 +243,7 @@ components:
243243
type: string
244244
description: The user's API token
245245
flags:
246-
type: number
246+
type: integer
247247
description: Bitfield representing user flags
248248
betaFlags:
249249
type: array
@@ -362,7 +362,7 @@ components:
362362
type: string
363363
description: The release channel of the build
364364
buildId:
365-
type: number
365+
type: integer
366366
format: int32
367367
description: The build number. Not globally unique, only unique per project.
368368
checksum:

src/Client/BlobBuildAPIClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(
3030
$this->httpClient = $httpClient;
3131
if ($configuration === null) {
3232
$configuration = new Configuration();
33-
$configuration->setUserAgent($userAgent ?? "php-blob-build-api/1.0.0");
33+
$configuration->setUserAgent($userAgent ?? "php-blob-build-api/1.0.1");
3434
if ($apiToken !== null) {
3535
$configuration->setAccessToken($apiToken);
3636
}

src/Model/Build.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Build implements ModelInterface, ArrayAccess, JsonSerializable
6060
protected static array $openAPITypes = [
6161
'project_name' => 'string',
6262
'release_channel' => 'string',
63-
'build_id' => 'float',
63+
'build_id' => 'int',
6464
'checksum' => 'string',
6565
'file_download_url' => 'string',
6666
'supported_versions' => 'string',
@@ -422,21 +422,21 @@ public function setReleaseChannel(string $release_channel): static
422422
/**
423423
* Gets build_id
424424
*
425-
* @return float
425+
* @return int
426426
*/
427-
public function getBuildId(): float
427+
public function getBuildId(): int
428428
{
429429
return $this->container['build_id'];
430430
}
431431

432432
/**
433433
* Sets build_id
434434
*
435-
* @param float $build_id The build number. Not globally unique, only unique per project.
435+
* @param int $build_id The build number. Not globally unique, only unique per project.
436436
*
437437
* @return $this
438438
*/
439-
public function setBuildId(float $build_id): static
439+
public function setBuildId(int $build_id): static
440440
{
441441
if (is_null($build_id)) {
442442
throw new InvalidArgumentException('non-nullable build_id cannot be null');

src/Model/ErrorResponse.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class ErrorResponse implements ModelInterface, ArrayAccess, JsonSerializable
6060
protected static array $openAPITypes = [
6161
'success' => 'bool',
6262
'error' => 'string',
63-
'code' => 'float'
63+
'code' => 'int'
6464
];
6565

6666
/**
@@ -367,21 +367,21 @@ public function setError(string $error): static
367367
/**
368368
* Gets code
369369
*
370-
* @return float
370+
* @return int
371371
*/
372-
public function getCode(): float
372+
public function getCode(): int
373373
{
374374
return $this->container['code'];
375375
}
376376

377377
/**
378378
* Sets code
379379
*
380-
* @param float $code An error code
380+
* @param int $code An error code
381381
*
382382
* @return $this
383383
*/
384-
public function setCode(float $code): static
384+
public function setCode(int $code): static
385385
{
386386
if (is_null($code)) {
387387
throw new InvalidArgumentException('non-nullable code cannot be null');

src/Model/User.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class User implements ModelInterface, ArrayAccess, JsonSerializable
6262
'oauth_provider' => 'string',
6363
'oauth_id' => 'string',
6464
'api_token' => 'string',
65-
'flags' => 'float',
65+
'flags' => 'int',
6666
'beta_flags' => 'string[]'
6767
];
6868

@@ -497,21 +497,21 @@ public function setApiToken(string $api_token): static
497497
/**
498498
* Gets flags
499499
*
500-
* @return float
500+
* @return int
501501
*/
502-
public function getFlags(): float
502+
public function getFlags(): int
503503
{
504504
return $this->container['flags'];
505505
}
506506

507507
/**
508508
* Sets flags
509509
*
510-
* @param float $flags Bitfield representing user flags
510+
* @param int $flags Bitfield representing user flags
511511
*
512512
* @return $this
513513
*/
514-
public function setFlags(float $flags): static
514+
public function setFlags(int $flags): static
515515
{
516516
if (is_null($flags)) {
517517
throw new InvalidArgumentException('non-nullable flags cannot be null');

0 commit comments

Comments
 (0)