/*
 * SPDX-FileCopyrightText: Copyright Corsinvest Srl
 * SPDX-License-Identifier: AGPL-3.0-only
 */
namespace Corsinvest.AppHero.Core.Validators;

[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
public class CronExpressionValidatorAttribute : ValidationAttribute
{
    public override bool IsValid(object? value) => CronHelper.IsValid(value + "");
}