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