feat: update ProjectCreationDto categories and themes input
PHPUnit / phpunit (push) Canceled after 0s
PHP CS Fixer / php-cs-fixer (pull_request) Canceled after 0s

This commit is contained in:
2026-10-19 15:36:25 +02:00
parent 4d348e1db7
commit 302464e01e
+2 -2
View File
@@ -37,7 +37,7 @@ class ProjectCreationDto
* @var CategoryApiResource[]
*/
#[Assert\NotBlank()]
#[Assert\Count(min: 1, max: 2)]
#[Assert\Count(exactly: 1)]
#[API\ApiProperty(writableLink: false, openapiContext: self::CATEGORIES_OPENAPI_CONTEXT)]
public array $categories;
@@ -46,7 +46,7 @@ class ProjectCreationDto
*
* @var ThemeApiResource[]
*/
#[Assert\Count(max: 1)]
#[Assert\Count(min: 1, max: 2)]
#[API\ApiProperty(writableLink: false, openapiContext: self::THEMES_OPENAPI_CONTEXT)]
public array $themes;