Skip to content

Commit

Permalink
ChecklistItem text length = 256
Browse files Browse the repository at this point in the history
  • Loading branch information
pmattmann committed Jul 13, 2024
1 parent d080c5f commit f0067ea
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion api/src/Entity/ChecklistItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions api/tests/Api/ChecklistItems/CreateChecklistItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function testCreateChecklistItemValidatesTooLongText() {
[
'json' => $this->getExampleWritePayload(
[
'text' => str_repeat('l', 65),
'text' => str_repeat('l', 257),
]
),
]
Expand All @@ -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.',
],
],
]);
Expand Down
4 changes: 2 additions & 2 deletions api/tests/Api/ChecklistItems/UpdateChecklistItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
]
Expand All @@ -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.',
],
],
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f0067ea

Please sign in to comment.