15 lines
314 B
C#
15 lines
314 B
C#
using FluentValidation;
|
|
using MealPlan.Api.DTOs.Auth;
|
|
|
|
namespace MealPlan.Api.Validators;
|
|
|
|
public class RefreshRequestValidator : AbstractValidator<RefreshRequestDto>
|
|
{
|
|
public RefreshRequestValidator()
|
|
{
|
|
RuleFor(x => x.RefreshToken)
|
|
.NotEmpty()
|
|
.MaximumLength(512);
|
|
}
|
|
}
|