using FluentValidation;

namespace Baya.Application.Features.Reviews.Commands.AttachReviewTags;

public sealed class AttachReviewTagsCommandValidator : AbstractValidator<AttachReviewTagsCommand>
{
    public AttachReviewTagsCommandValidator()
    {
        RuleFor(x => x.ReviewId).GreaterThan(0);
        RuleFor(x => x.TagCodes).NotNull();
        RuleForEach(x => x.TagCodes).NotEmpty().MaximumLength(50);
    }
}
