Files
BeReadyBackend/BeReadyBackend/Validators/Auth/GetTokenDtoValidator.cs
T

15 lines
336 B
C#

using BeReadyBackend.DTO.Auth;
using FastEndpoints;
using FluentValidation;
namespace BeReadyBackend.Validators.Auth;
public class GetTokenDtoValidator : Validator<GetTokenDto>
{
public GetTokenDtoValidator()
{
RuleFor(x => x.Token)
.NotEmpty()
.WithMessage("Token cannot be empty");
}
}