Cleaned code
This commit is contained in:
@@ -15,12 +15,12 @@ public class GetBookDtoValidator : Validator<GetBookDto>
|
||||
RuleFor(x => x.Title)
|
||||
.NotEmpty()
|
||||
.WithMessage("Title is required");
|
||||
|
||||
|
||||
RuleFor(x => x.Isbn)
|
||||
.NotEmpty().WithMessage("L’ISBN est obligatoire.")
|
||||
.Matches(@"^\d{13}$")
|
||||
.WithMessage("L’ISBN doit contenir exactement 13 chiffres.");
|
||||
|
||||
|
||||
RuleFor(x => x.AuthorFullName)
|
||||
.NotEmpty()
|
||||
.WithMessage("AuthorFullName is required");
|
||||
|
||||
Reference in New Issue
Block a user