using FluentValidation;

namespace ColaFlow.Modules.IssueManagement.Application.Commands.ChangeIssueStatus;

public sealed class ChangeIssueStatusCommandValidator : AbstractValidator<ChangeIssueStatusCommand>
{
    public ChangeIssueStatusCommandValidator()
    {
        RuleFor(x => x.IssueId)
            .NotEmpty().WithMessage("IssueId is required");

        RuleFor(x => x.NewStatus)
            .IsInEnum().WithMessage("Invalid IssueStatus");
    }
}
