19 lines
674 B
C#
19 lines
674 B
C#
using System;
|
|
using NodePipeline.Abstractions.Interfaces.Validation;
|
|
|
|
// ReSharper disable UnusedParameter.Local
|
|
|
|
namespace NodePipeline.Abstractions.Attributes.Validation.NodeField;
|
|
|
|
//TODO: for analyzer: apply to NodeField<T>, value must be T type
|
|
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
|
|
public sealed class HasValidatorAttribute : Attribute
|
|
{
|
|
/// <summary>
|
|
/// Indicates that node field (parameter) should use specified <see cref="INodeFieldValidator{T}" />
|
|
/// </summary>
|
|
/// <param name="validatorType">Type of <see cref="INodeFieldValidator{T}" /></param>
|
|
public HasValidatorAttribute(Type validatorType)
|
|
{
|
|
}
|
|
} |