using FluentValidation;

namespace ColaFlow.Modules.ProjectManagement.Application.Commands.UpdateEpic;

/// <summary>
/// Validator for UpdateEpicCommand
/// </summary>
public sealed class UpdateEpicCommandValidator : AbstractValidator<UpdateEpicCommand>
{
    public UpdateEpicCommandValidator()
    {
        RuleFor(x => x.EpicId)
            .NotEmpty().WithMessage("Epic ID is required");

        RuleFor(x => x.Name)
            .NotEmpty().WithMessage("Epic name is required")
            .MaximumLength(200).WithMessage("Epic name cannot exceed 200 characters");
    }
}
