From 327e94cc11febef416fadc94b9ef91deb6e22bc5 Mon Sep 17 00:00:00 2001 From: Clement Brousseau Date: Thu, 5 Dec 2024 17:58:51 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20suppression=20du=20caractere=20obligatoi?= =?UTF-8?q?re=20du=20champ=20'mots=20cl=C3=A9s'=20(#567)=20(#576)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Dto/Pyramid/PublishPyramidDTO.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Dto/Pyramid/PublishPyramidDTO.php b/src/Dto/Pyramid/PublishPyramidDTO.php index 4cb8e7c8..ac8f7bcb 100644 --- a/src/Dto/Pyramid/PublishPyramidDTO.php +++ b/src/Dto/Pyramid/PublishPyramidDTO.php @@ -27,7 +27,6 @@ public function __construct( public readonly array $category, /** @var array */ - #[Assert\Count(min: 1, minMessage: 'common.keywords_min_error')] public readonly array $keywords, #[Assert\NotBlank(['message' => 'common.email_contact_error'])] @@ -47,10 +46,8 @@ public function __construct( #[Assert\NotBlank(['message' => 'common.projection_error'])] public readonly string $projection, - // #[Assert\NotBlank(['message' => 'common.attribution_text_mandatory_error'])] public readonly string $attribution_text, - // #[Assert\NotBlank(['message' => 'common.attribution_url_mandatory_error'])] #[Assert\Url(['message' => 'common.attribution_url_error'])] public readonly string $attribution_url, @@ -61,9 +58,6 @@ public function __construct( #[Assert\NotBlank(['message' => 'common.charset_error'])] public readonly string $charset, - // #[Assert\NotBlank(['message' => 'common.encoding_error'])] - // public readonly string $encoding, - #[Assert\Choice([ 'choices' => ['', '200', '500', '1000', '2000', '5000', '10000', '25000', '50000', '100000', '250000', '500000', '1000000', '5000000', '10000000'], // NOTE : doit correspondre à assets/data/md_resolutions.json 'message' => 'common.resolution_error',