diff --git a/api/src/Entity/ChecklistItem.php b/api/src/Entity/ChecklistItem.php index 2b726bf2536..9cbec270c19 100644 --- a/api/src/Entity/ChecklistItem.php +++ b/api/src/Entity/ChecklistItem.php @@ -117,7 +117,7 @@ class ChecklistItem extends BaseEntity implements BelongsToCampInterface, CopyFr #[InputFilter\Trim] #[InputFilter\CleanText] #[Assert\NotBlank] - #[Assert\Length(max: 64)] + #[Assert\Length(max: 256)] #[ORM\Column(type: 'text')] public ?string $text = null; diff --git a/api/tests/Api/ChecklistItems/CreateChecklistItemTest.php b/api/tests/Api/ChecklistItems/CreateChecklistItemTest.php index 6aa37d94896..6381cc09996 100644 --- a/api/tests/Api/ChecklistItems/CreateChecklistItemTest.php +++ b/api/tests/Api/ChecklistItems/CreateChecklistItemTest.php @@ -147,7 +147,7 @@ public function testCreateChecklistItemValidatesTooLongText() { [ 'json' => $this->getExampleWritePayload( [ - 'text' => str_repeat('l', 65), + 'text' => str_repeat('l', 257), ] ), ] @@ -158,7 +158,7 @@ public function testCreateChecklistItemValidatesTooLongText() { 'violations' => [ [ 'propertyPath' => 'text', - 'message' => 'This value is too long. It should have 64 characters or less.', + 'message' => 'This value is too long. It should have 256 characters or less.', ], ], ]); diff --git a/api/tests/Api/ChecklistItems/UpdateChecklistItemTest.php b/api/tests/Api/ChecklistItems/UpdateChecklistItemTest.php index ca6ceae23ac..0152401f688 100644 --- a/api/tests/Api/ChecklistItems/UpdateChecklistItemTest.php +++ b/api/tests/Api/ChecklistItems/UpdateChecklistItemTest.php @@ -161,7 +161,7 @@ public function testPatchChecklistItemValidatesTooLongText() { '/checklist_items/'.$checklistItem->getId(), [ 'json' => [ - 'text' => str_repeat('l', 65), + 'text' => str_repeat('l', 257), ], 'headers' => ['Content-Type' => 'application/merge-patch+json'], ] @@ -172,7 +172,7 @@ public function testPatchChecklistItemValidatesTooLongText() { 'violations' => [ [ 'propertyPath' => 'text', - 'message' => 'This value is too long. It should have 64 characters or less.', + 'message' => 'This value is too long. It should have 256 characters or less.', ], ], ]); diff --git a/api/tests/Api/SnapshotTests/__snapshots__/ResponseSnapshotTest__testOpenApiSpecMatchesSnapshot__1.yml b/api/tests/Api/SnapshotTests/__snapshots__/ResponseSnapshotTest__testOpenApiSpecMatchesSnapshot__1.yml index a010a74a9db..464daf2d6e7 100644 --- a/api/tests/Api/SnapshotTests/__snapshots__/ResponseSnapshotTest__testOpenApiSpecMatchesSnapshot__1.yml +++ b/api/tests/Api/SnapshotTests/__snapshots__/ResponseSnapshotTest__testOpenApiSpecMatchesSnapshot__1.yml @@ -7955,7 +7955,7 @@ components: text: description: 'The human readable text of the checklist-item.' example: Pfaditechnick - maxLength: 64 + maxLength: 256 type: string required: - checklist @@ -7987,7 +7987,7 @@ components: text: description: 'The human readable text of the checklist-item.' example: Pfaditechnick - maxLength: 64 + maxLength: 256 type: string required: - position @@ -8022,7 +8022,7 @@ components: text: description: 'The human readable text of the checklist-item.' example: Pfaditechnick - maxLength: 64 + maxLength: 256 type: string required: - checklist @@ -8053,7 +8053,7 @@ components: text: description: 'The human readable text of the checklist-item.' example: Pfaditechnick - maxLength: 64 + maxLength: 256 type: string required: - position @@ -8147,7 +8147,7 @@ components: text: description: 'The human readable text of the checklist-item.' example: Pfaditechnick - maxLength: 64 + maxLength: 256 type: string required: - checklist @@ -8193,7 +8193,7 @@ components: text: description: 'The human readable text of the checklist-item.' example: Pfaditechnick - maxLength: 64 + maxLength: 256 type: string required: - checklist @@ -8267,7 +8267,7 @@ components: text: description: 'The human readable text of the checklist-item.' example: Pfaditechnick - maxLength: 64 + maxLength: 256 type: string required: - checklist @@ -8304,7 +8304,7 @@ components: text: description: 'The human readable text of the checklist-item.' example: Pfaditechnick - maxLength: 64 + maxLength: 256 type: string required: - checklist