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