using FluentValidation; namespace AutobusApi.Application.Countries.Commands.UpdateCountry; public class UpdateCountryCommandValidator : AbstractValidator { public UpdateCountryCommandValidator() { RuleFor(v => v.Name).MinimumLength(2).MaximumLength(64); RuleFor(v => v.Id).GreaterThan(0); } }