Initial commit
This commit is contained in:
14
MealPlan.Api/Validators/RefreshRequestValidator.cs
Normal file
14
MealPlan.Api/Validators/RefreshRequestValidator.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user