using FluentValidation;

using Monitoring.Common.Validators;

namespace Monitoring.Features.Users.GetUserList;

public class GetUserListValidator : AbstractValidator<GetUserListRequest>
{
	public GetUserListValidator()
	{
		_ = RuleFor(x => x).SetValidator(new TableStateValidator());
		_ = RuleFor(x => x.Roles).NotEmpty().When(x => x.Roles is not null);
	}
}