Skip to content

Commit

Permalink
Fix min length issues for magazine description and rules (#1245)
Browse files Browse the repository at this point in the history
  • Loading branch information
BentiGorlich authored Nov 24, 2024
1 parent af60baa commit dd6ad9a
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 dd6ad9a

Please sign in to comment.