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',