using FluentValidation;

namespace Monitoring.Features.CheckListManagement;

public class CreateCheckListTemplateValidator : AbstractValidator<CreateCheckListTemplateRequest>
{
	public CreateCheckListTemplateValidator()
	{
		RuleFor(x => x.Type).NotEmpty();
		RuleFor(x => x.Items).NotEmpty().Must(items => items.Count > 0);
	}
}
