using FluentValidation;

namespace Baya.Application.Features.Identity.Commands.UpsertNurseProfile;

public sealed class UpsertNurseProfileCommandValidator : AbstractValidator<UpsertNurseProfileCommand>
{
    public UpsertNurseProfileCommandValidator()
    {
        RuleFor(x => x.Bio).MaximumLength(2000);
        RuleFor(x => x.YearsOfExperience).InclusiveBetween(0, 80);
        RuleFor(x => x.EducationLevel).MaximumLength(100);
        RuleFor(x => x.EducationField).MaximumLength(150);
    }
}
