Skip to content

Commit 8dd4176

Browse files
authored
Merge pull request #38 from CyberfusionNL/bugfix/1.86.4
Properly apply nullable validation
2 parents 80bbf91 + 9f595bd commit 8dd4176

File tree

5 files changed

+10
-1
lines changed

5 files changed

+10
-1
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66
this package and not the cluster API. See the changelog of the [cluster API](https://cluster-api.cyberfusion.nl/redoc#section/Changelog)
77
for detailed information.
88

9+
## [1.86.4]
10+
11+
### Fixed
12+
13+
- Properly apply nullable validation in `BorgRepository`, `DatabaseUser` and `PassengerApp` models.
14+
915
## [1.86.3]
1016

1117
### Fixed

src/Client.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Client implements ClientContract
2020
{
2121
private const CONNECT_TIMEOUT = 60;
2222
private const TIMEOUT = 180;
23-
private const VERSION = '1.86.3';
23+
private const VERSION = '1.86.4';
2424
private const USER_AGENT = 'cyberfusion-cluster-api-client/' . self::VERSION;
2525

2626
private Configuration $configuration;

src/Models/BorgRepository.php

+1
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ public function getRemoteUsername(): ?string
157157
public function setRemoteUsername(?string $remoteUsername): self
158158
{
159159
Validator::value($remoteUsername)
160+
->nullable()
160161
->maxLength(32)
161162
->pattern('^[a-z0-9-_]+$')
162163
->validate();

src/Models/DatabaseUser.php

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public function getPassword(): ?string
6363
public function setPassword(?string $password): self
6464
{
6565
Validator::value($password)
66+
->nullable()
6667
->maxLength(255)
6768
->pattern('^[ -~]+$')
6869
->validate();

src/Models/PassengerApp.php

+1
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ public function getNodejsVersion(): ?string
175175
public function setNodejsVersion(?string $nodejsVersion): self
176176
{
177177
Validator::value($nodejsVersion)
178+
->nullable()
178179
->pattern('^[0-9]{1,2}\.[0-9]{1,2}$')
179180
->validate();
180181

0 commit comments

Comments
 (0)