Created all validators

This commit is contained in:
2026-03-10 10:43:28 +01:00
parent 9f858df5f8
commit 5c3419abc0
19 changed files with 54 additions and 34 deletions

View File

@@ -22,7 +22,7 @@ public class UpdateReviewDtoValidator : Validator<UpdateReviewDto>
RuleFor(x => x.Rating)
.InclusiveBetween(1, 5)
.WithMessage("Rating must be between 1 and 5.");
.WithMessage(x => $"La note {x.Rating} est invalide. Elle doit être comprise entre 1 et 5.");
When(x => x.Comment is not null, () =>
{