19 lines
418 B
C#
19 lines
418 B
C#
using FluentValidation;
|
|
|
|
namespace Nitride.Handlebars;
|
|
|
|
public class ApplyStyleTemplateValidator<TModel> : AbstractValidator<ApplyStyleTemplate<TModel>>
|
|
{
|
|
public ApplyStyleTemplateValidator()
|
|
{
|
|
this.RuleFor(x => x.Handlebars)
|
|
.NotNull();
|
|
|
|
this.RuleFor(x => x.GetTemplateName)
|
|
.NotNull();
|
|
|
|
this.RuleFor(x => x.CreateModelCallback)
|
|
.NotNull();
|
|
}
|
|
}
|