using FluentValidation;

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

public sealed class AddParticipantCommandValidator : AbstractValidator<AddParticipantCommand>
{
    public AddParticipantCommandValidator()
    {
        // TicketId is route-supplied (merged via `with`); only the body-supplied UserId is validated.
        RuleFor(x => x.UserId).GreaterThan(0);
    }
}
