15 lines
336 B
C#
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");
|
|
}
|
|
} |