Skip to content

Commit 5052379

Browse files
committed
changed roles type to array
1 parent add0904 commit 5052379

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/helpers/MetaFormats/FormatDefinitions/UserFilterFormat.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use App\Helpers\MetaFormats\Attributes\Format;
66
use App\Helpers\MetaFormats\MetaFormat;
77
use App\Helpers\MetaFormats\Attributes\FQuery;
8+
use App\Helpers\MetaFormats\Validators\VArray;
89
use App\Helpers\MetaFormats\Validators\VString;
910

1011
/**
@@ -19,6 +20,6 @@ class UserFilterFormat extends MetaFormat
1920
#[FQuery(new VString(), "The instance ID of the user", required: false)]
2021
public ?string $instanceId;
2122

22-
#[FQuery(new VString(), "The roles of the user", required: false)]
23-
public ?string $roles;
23+
#[FQuery(new VArray(new VString()), "The roles of the user", required: false)]
24+
public ?array $roles;
2425
}

0 commit comments

Comments
 (0)