13 lines
377 B
C#
13 lines
377 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();
|
|
}
|
|
}
|