using FluentValidation;
using Meezi.API.Models.Menu;

namespace Meezi.API.Validators;

public class UpsertBranchMenuOverrideRequestValidator : AbstractValidator<UpsertBranchMenuOverrideRequest>
{
    public UpsertBranchMenuOverrideRequestValidator()
    {
        RuleFor(x => x.PriceOverride)
            .GreaterThanOrEqualTo(0)
            .When(x => x.PriceOverride.HasValue);
    }
}
