From 8a86eebdcbb5e7366487450c10b6b182f1a39a2c Mon Sep 17 00:00:00 2001 From: Orka Arnest CRUZE Date: Fri, 15 Nov 2024 16:03:53 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20validation=20de=20r=C3=A9solutions=20c?= =?UTF-8?q?=C3=B4t=C3=A9=20symfony=20en=20phase=20avec=20validation=20c?= =?UTF-8?q?=C3=B4t=C3=A9=20client=20#529?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Dto/CommonDTO.php | 2 +- src/Dto/Pyramid/PublishPyramidDTO.php | 2 +- src/Dto/WfsAddDTO.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Dto/CommonDTO.php b/src/Dto/CommonDTO.php index e14fda07..68920714 100644 --- a/src/Dto/CommonDTO.php +++ b/src/Dto/CommonDTO.php @@ -53,7 +53,7 @@ public function __construct( // public readonly string $encoding, #[Assert\Choice([ - 'choices' => ['', '25000', '75000', '100000', '150000', '200000', '250000', '1000000'], // TODO NON EXHAUSTI + 'choices' => ['', '200', '500', '1000', '2000', '5000', '10000', '25000', '50000', '100000', '250000', '500000', '1000000', '5000000', '10000000'], // NOTE : doit correspondre à assets/data/md_resolutions.json 'message' => 'metadatas.resolution_error', ])] public readonly string $resolution, diff --git a/src/Dto/Pyramid/PublishPyramidDTO.php b/src/Dto/Pyramid/PublishPyramidDTO.php index f7cc9a0d..4db120f9 100644 --- a/src/Dto/Pyramid/PublishPyramidDTO.php +++ b/src/Dto/Pyramid/PublishPyramidDTO.php @@ -65,7 +65,7 @@ public function __construct( // public readonly string $encoding, #[Assert\Choice([ - 'choices' => ['', '25000', '75000', '100000', '150000', '200000', '250000', '1000000'], // TODO NON EXHAUSTIF + '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', ])] public readonly ?string $resolution, diff --git a/src/Dto/WfsAddDTO.php b/src/Dto/WfsAddDTO.php index 221451df..8b515608 100644 --- a/src/Dto/WfsAddDTO.php +++ b/src/Dto/WfsAddDTO.php @@ -67,7 +67,7 @@ public function __construct( // public readonly string $encoding, #[Assert\Choice([ - 'choices' => ['', '25000', '75000', '100000', '150000', '200000', '250000', '1000000'], // TODO NON EXHAUSTIF + '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', ])] public readonly ?string $resolution, @@ -91,7 +91,7 @@ public function __construct( * @var WfsTableDTO[] */ #[Assert\Valid] - public readonly array $table_infos + public readonly array $table_infos, ) { } }