using FluentValidation;

namespace Baya.Application.Features.Messaging.Commands.PostMessage;

public sealed class PostMessageCommandValidator : AbstractValidator<PostMessageCommand>
{
    public PostMessageCommandValidator()
    {
        // TicketId is route-supplied (merged via `with`), so it is not validated here.
        RuleFor(x => x.Body).NotEmpty().MaximumLength(4000);
    }
}
