using FluentValidation; namespace AutobusApi.Application.Countries.Queries.GetCountriesWithPagination; public class GetCountriesWithPaginationQueryValidator : AbstractValidator { public GetCountriesWithPaginationQueryValidator() { RuleFor(v => v.PageNumber).GreaterThanOrEqualTo(1); RuleFor(v => v.PageSize).GreaterThanOrEqualTo(1).LessThanOrEqualTo(50); } }