using FluentValidation;

namespace Baya.Application.Features.Catalog.Commands.UpdateServiceOptionValue;

public sealed class UpdateServiceOptionValueCommandValidator : AbstractValidator<UpdateServiceOptionValueCommand>
{
    // Id is supplied by the route (set after model binding), so it is not validated here.
    public UpdateServiceOptionValueCommandValidator()
    {
        RuleFor(x => x.NameFa).NotEmpty().MaximumLength(150);
        RuleFor(x => x.NameEn).NotEmpty().MaximumLength(150);
    }
}
