Skip to content

Commit

Permalink
fix: suppression du caractere obligatoire du champ 'mots clés' (#567) (
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrousseau1 authored Dec 5, 2024
1 parent 0c8df83 commit 327e94c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Dto/Pyramid/PublishPyramidDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public function __construct(
public readonly array $category,

/** @var array<string> */
#[Assert\Count(min: 1, minMessage: 'common.keywords_min_error')]
public readonly array $keywords,

#[Assert\NotBlank(['message' => 'common.email_contact_error'])]
Expand All @@ -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,

Expand All @@ -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',
Expand Down

0 comments on commit 327e94c

Please sign in to comment.