Cleaned code
This commit is contained in:
@@ -13,6 +13,5 @@ public class UnlockAchievementDtoValidator : Validator<UnlockAchievementDto>
|
||||
.WithMessage("AchievementId cannot be empty")
|
||||
.GreaterThan(0)
|
||||
.WithMessage("AchievementId must be greater than 0");
|
||||
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ using FluentValidation;
|
||||
|
||||
namespace BeReadyBackend.Validators.Auth;
|
||||
|
||||
public class LoginDtoValidator: Validator<LoginDto>
|
||||
public class LoginDtoValidator : Validator<LoginDto>
|
||||
{
|
||||
public LoginDtoValidator()
|
||||
{
|
||||
|
||||
@@ -6,8 +6,8 @@ namespace BeReadyBackend.Validators.Users;
|
||||
|
||||
public class GetUserDtoValidator : Validator<GetUserDto>
|
||||
{
|
||||
public GetUserDtoValidator() {
|
||||
|
||||
public GetUserDtoValidator()
|
||||
{
|
||||
RuleFor(x => x.Id)
|
||||
.NotEmpty()
|
||||
.WithMessage("Id cannot be empty")
|
||||
|
||||
@@ -16,7 +16,7 @@ public class GetUserStatsDtoValidator : Validator<GetUserStatsDto>
|
||||
.NotEmpty()
|
||||
.WithMessage("Total win is required");
|
||||
|
||||
RuleFor(x=> x.TotalChallenge)
|
||||
RuleFor(x => x.TotalChallenge)
|
||||
.NotEmpty()
|
||||
.WithMessage("Total challenge is required");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user