Skip to content

Commit

Permalink
Fix min length issues for magazine description and rules
Browse files Browse the repository at this point in the history
- lower the min length for the magazine description and rules from 3 to 0
  • Loading branch information
BentiGorlich committed Nov 24, 2024
1 parent af60baa commit 4f033e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DTO/MagazineDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class MagazineDto
#[Assert\NotBlank]
#[Assert\Length(min: 3, max: self::MAX_TITLE_LENGTH)]
public ?string $title = null;
#[Assert\Length(min: 3, max: Magazine::MAX_DESCRIPTION_LENGTH)]
#[Assert\Length(min: 0, max: Magazine::MAX_DESCRIPTION_LENGTH)]
public ?string $description = null;
#[Assert\Length(min: 3, max: Magazine::MAX_RULES_LENGTH)]
#[Assert\Length(min: 0, max: Magazine::MAX_RULES_LENGTH)]
public ?string $rules = null;
public ?string $visibility = null;
public int $subscriptionsCount = 0;
Expand Down

0 comments on commit 4f033e8

Please sign in to comment.