mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
16 lines
431 B
C#
16 lines
431 B
C#
using CliFx.Attributes;
|
|
|
|
namespace CliFx.Tests.Commands.Invalid
|
|
{
|
|
[Command]
|
|
public class InvalidCustomValidatorParameterCommand : SelfSerializeCommandBase
|
|
{
|
|
[CommandParameter(0, Validators = new[] { typeof(Validator) })]
|
|
public string? Param { get; set; }
|
|
|
|
public class Validator
|
|
{
|
|
public ValidationResult Validate(string value) => ValidationResult.Ok();
|
|
}
|
|
}
|
|
} |