Skip to content

Commit 26f8871

Browse files
committed
Removed strict flag from Jane config to become sane again
1 parent 679dc61 commit 26f8871

369 files changed

Lines changed: 6199 additions & 4265 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.jane-openapi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ return [
66
'namespace' => 'Docker\\API',
77
'openapi-file' => __DIR__ . '/spec/v1.36.json',
88
'reference' => true,
9-
'strict' => true,
9+
'strict' => false,
1010
];

src/Model/Address.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,28 @@ class Address
99
/**
1010
* IP address.
1111
*
12-
* @var string
12+
* @var string|null
1313
*/
1414
protected $addr;
1515
/**
1616
* Mask length of the IP address.
1717
*
18-
* @var int
18+
* @var int|null
1919
*/
2020
protected $prefixLen;
2121

2222
/**
2323
* IP address.
2424
*/
25-
public function getAddr(): string
25+
public function getAddr(): ?string
2626
{
2727
return $this->addr;
2828
}
2929

3030
/**
3131
* IP address.
3232
*/
33-
public function setAddr(string $addr): self
33+
public function setAddr(?string $addr): self
3434
{
3535
$this->addr = $addr;
3636

@@ -40,15 +40,15 @@ public function setAddr(string $addr): self
4040
/**
4141
* Mask length of the IP address.
4242
*/
43-
public function getPrefixLen(): int
43+
public function getPrefixLen(): ?int
4444
{
4545
return $this->prefixLen;
4646
}
4747

4848
/**
4949
* Mask length of the IP address.
5050
*/
51-
public function setPrefixLen(int $prefixLen): self
51+
public function setPrefixLen(?int $prefixLen): self
5252
{
5353
$this->prefixLen = $prefixLen;
5454

src/Model/AuthConfig.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,64 +7,64 @@
77
class AuthConfig
88
{
99
/**
10-
* @var string
10+
* @var string|null
1111
*/
1212
protected $username;
1313
/**
14-
* @var string
14+
* @var string|null
1515
*/
1616
protected $password;
1717
/**
18-
* @var string
18+
* @var string|null
1919
*/
2020
protected $email;
2121
/**
22-
* @var string
22+
* @var string|null
2323
*/
2424
protected $serveraddress;
2525

26-
public function getUsername(): string
26+
public function getUsername(): ?string
2727
{
2828
return $this->username;
2929
}
3030

31-
public function setUsername(string $username): self
31+
public function setUsername(?string $username): self
3232
{
3333
$this->username = $username;
3434

3535
return $this;
3636
}
3737

38-
public function getPassword(): string
38+
public function getPassword(): ?string
3939
{
4040
return $this->password;
4141
}
4242

43-
public function setPassword(string $password): self
43+
public function setPassword(?string $password): self
4444
{
4545
$this->password = $password;
4646

4747
return $this;
4848
}
4949

50-
public function getEmail(): string
50+
public function getEmail(): ?string
5151
{
5252
return $this->email;
5353
}
5454

55-
public function setEmail(string $email): self
55+
public function setEmail(?string $email): self
5656
{
5757
$this->email = $email;
5858

5959
return $this;
6060
}
6161

62-
public function getServeraddress(): string
62+
public function getServeraddress(): ?string
6363
{
6464
return $this->serveraddress;
6565
}
6666

67-
public function setServeraddress(string $serveraddress): self
67+
public function setServeraddress(?string $serveraddress): self
6868
{
6969
$this->serveraddress = $serveraddress;
7070

src/Model/AuthPostResponse200.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,28 @@ class AuthPostResponse200
99
/**
1010
* The status of the authentication.
1111
*
12-
* @var string
12+
* @var string|null
1313
*/
1414
protected $status;
1515
/**
1616
* An opaque token used to authenticate a user after a successful login.
1717
*
18-
* @var string
18+
* @var string|null
1919
*/
2020
protected $identityToken;
2121

2222
/**
2323
* The status of the authentication.
2424
*/
25-
public function getStatus(): string
25+
public function getStatus(): ?string
2626
{
2727
return $this->status;
2828
}
2929

3030
/**
3131
* The status of the authentication.
3232
*/
33-
public function setStatus(string $status): self
33+
public function setStatus(?string $status): self
3434
{
3535
$this->status = $status;
3636

@@ -40,15 +40,15 @@ public function setStatus(string $status): self
4040
/**
4141
* An opaque token used to authenticate a user after a successful login.
4242
*/
43-
public function getIdentityToken(): string
43+
public function getIdentityToken(): ?string
4444
{
4545
return $this->identityToken;
4646
}
4747

4848
/**
4949
* An opaque token used to authenticate a user after a successful login.
5050
*/
51-
public function setIdentityToken(string $identityToken): self
51+
public function setIdentityToken(?string $identityToken): self
5252
{
5353
$this->identityToken = $identityToken;
5454

src/Model/BuildInfo.php

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,118 +7,118 @@
77
class BuildInfo
88
{
99
/**
10-
* @var string
10+
* @var string|null
1111
*/
1212
protected $id;
1313
/**
14-
* @var string
14+
* @var string|null
1515
*/
1616
protected $stream;
1717
/**
18-
* @var string
18+
* @var string|null
1919
*/
2020
protected $error;
2121
/**
22-
* @var ErrorDetail
22+
* @var ErrorDetail|null
2323
*/
2424
protected $errorDetail;
2525
/**
26-
* @var string
26+
* @var string|null
2727
*/
2828
protected $status;
2929
/**
30-
* @var string
30+
* @var string|null
3131
*/
3232
protected $progress;
3333
/**
34-
* @var ProgressDetail
34+
* @var ProgressDetail|null
3535
*/
3636
protected $progressDetail;
3737
/**
3838
* Image ID or Digest.
3939
*
40-
* @var ImageID
40+
* @var ImageID|null
4141
*/
4242
protected $aux;
4343

44-
public function getId(): string
44+
public function getId(): ?string
4545
{
4646
return $this->id;
4747
}
4848

49-
public function setId(string $id): self
49+
public function setId(?string $id): self
5050
{
5151
$this->id = $id;
5252

5353
return $this;
5454
}
5555

56-
public function getStream(): string
56+
public function getStream(): ?string
5757
{
5858
return $this->stream;
5959
}
6060

61-
public function setStream(string $stream): self
61+
public function setStream(?string $stream): self
6262
{
6363
$this->stream = $stream;
6464

6565
return $this;
6666
}
6767

68-
public function getError(): string
68+
public function getError(): ?string
6969
{
7070
return $this->error;
7171
}
7272

73-
public function setError(string $error): self
73+
public function setError(?string $error): self
7474
{
7575
$this->error = $error;
7676

7777
return $this;
7878
}
7979

80-
public function getErrorDetail(): ErrorDetail
80+
public function getErrorDetail(): ?ErrorDetail
8181
{
8282
return $this->errorDetail;
8383
}
8484

85-
public function setErrorDetail(ErrorDetail $errorDetail): self
85+
public function setErrorDetail(?ErrorDetail $errorDetail): self
8686
{
8787
$this->errorDetail = $errorDetail;
8888

8989
return $this;
9090
}
9191

92-
public function getStatus(): string
92+
public function getStatus(): ?string
9393
{
9494
return $this->status;
9595
}
9696

97-
public function setStatus(string $status): self
97+
public function setStatus(?string $status): self
9898
{
9999
$this->status = $status;
100100

101101
return $this;
102102
}
103103

104-
public function getProgress(): string
104+
public function getProgress(): ?string
105105
{
106106
return $this->progress;
107107
}
108108

109-
public function setProgress(string $progress): self
109+
public function setProgress(?string $progress): self
110110
{
111111
$this->progress = $progress;
112112

113113
return $this;
114114
}
115115

116-
public function getProgressDetail(): ProgressDetail
116+
public function getProgressDetail(): ?ProgressDetail
117117
{
118118
return $this->progressDetail;
119119
}
120120

121-
public function setProgressDetail(ProgressDetail $progressDetail): self
121+
public function setProgressDetail(?ProgressDetail $progressDetail): self
122122
{
123123
$this->progressDetail = $progressDetail;
124124

@@ -128,15 +128,15 @@ public function setProgressDetail(ProgressDetail $progressDetail): self
128128
/**
129129
* Image ID or Digest.
130130
*/
131-
public function getAux(): ImageID
131+
public function getAux(): ?ImageID
132132
{
133133
return $this->aux;
134134
}
135135

136136
/**
137137
* Image ID or Digest.
138138
*/
139-
public function setAux(ImageID $aux): self
139+
public function setAux(?ImageID $aux): self
140140
{
141141
$this->aux = $aux;
142142

src/Model/BuildPrunePostResponse200.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ class BuildPrunePostResponse200
99
/**
1010
* Disk space reclaimed in bytes.
1111
*
12-
* @var int
12+
* @var int|null
1313
*/
1414
protected $spaceReclaimed;
1515

1616
/**
1717
* Disk space reclaimed in bytes.
1818
*/
19-
public function getSpaceReclaimed(): int
19+
public function getSpaceReclaimed(): ?int
2020
{
2121
return $this->spaceReclaimed;
2222
}
2323

2424
/**
2525
* Disk space reclaimed in bytes.
2626
*/
27-
public function setSpaceReclaimed(int $spaceReclaimed): self
27+
public function setSpaceReclaimed(?int $spaceReclaimed): self
2828
{
2929
$this->spaceReclaimed = $spaceReclaimed;
3030

0 commit comments

Comments
 (0)