Skip to content

Commit 86a1c7f

Browse files
committed
feat(view): implement the possibility to specify possible values
I went with the keyword "possible", because "acceptedValues" would imply some kind of validation behind the scenes - which may not necessarily be present.
1 parent 9a56cee commit 86a1c7f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/view/src/ViewComponentParameter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ public function __construct(
1313
public bool $required = false,
1414
public ?string $description = null,
1515
public mixed $default = null,
16+
public ?array $possibleValues = null,
1617
) {}
1718
}

0 commit comments

Comments
 (0)