Skip to content

Commit 7003162

Browse files
committed
changed validator
1 parent 13361ad commit 7003162

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/helpers/MetaFormats/FormatDefinitions/UserFormat.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use App\Helpers\MetaFormats\Validators\VArray;
1111
use App\Helpers\MetaFormats\Validators\VEmail;
1212
use App\Helpers\MetaFormats\Validators\VString;
13+
use App\Helpers\MetaFormats\Validators\VUuid;
1314

1415
/**
1516
* Format definition used by the RegistrationPresenter::actionCreateInvitation endpoint.
@@ -26,7 +27,7 @@ class UserFormat extends MetaFormat
2627
#[FPost(new VString(2), "Last name")]
2728
public ?string $lastName;
2829

29-
#[FPost(new VString(1), "Identifier of the instance to register in")]
30+
#[FPost(new VUuid(), "Identifier of the instance to register in")]
3031
public ?string $instanceId;
3132

3233
#[FPost(new VString(1), "Titles that are placed before user name", required: false)]

0 commit comments

Comments
 (0)