| | | 1 | | [AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)] |
| | | 2 | | public sealed class InternalPowershellAttribute : KestrunAnnotation |
| | | 3 | | { |
| | | 4 | | /// <summary> |
| | | 5 | | /// Gets the attribute's minimum range. From ValidateRangeAttribute.MinRange |
| | | 6 | | /// </summary> |
| | 4 | 7 | | public string? MinRange { get; set; } |
| | | 8 | | /// <summary> |
| | | 9 | | /// Gets the attribute's maximum range. From ValidateRangeAttribute.MaxRange |
| | | 10 | | /// </summary> |
| | 3 | 11 | | public string? MaxRange { get; set; } |
| | | 12 | | |
| | | 13 | | /// <summary> |
| | | 14 | | /// Gets the attribute's minimum length. From ValidateLengthAttribute.MinLength |
| | | 15 | | /// </summary> |
| | 1 | 16 | | public int? MinLength { get; set; } |
| | | 17 | | /// <summary> |
| | | 18 | | /// Gets the attribute's maximum length. From ValidateLengthAttribute.MaxLength |
| | | 19 | | /// </summary> |
| | 1 | 20 | | public int? MaxLength { get; set; } |
| | | 21 | | /// <summary> |
| | | 22 | | /// Gets the attribute's valid values. From ValidateSetAttribute.ValidValues |
| | | 23 | | /// </summary> |
| | 1 | 24 | | public IList<string>? AllowedValues { get; set; } |
| | | 25 | | /// <summary> |
| | | 26 | | /// Gets or sets the regex pattern. From ValidatePatternAttribute.RegexPattern |
| | | 27 | | /// </summary> |
| | 1 | 28 | | public string? RegexPattern { get; set; } |
| | | 29 | | /// <summary> |
| | | 30 | | /// Gets the minimum count. From ValidateCountAttribute.MinLength |
| | | 31 | | /// </summary> |
| | 1 | 32 | | public int? MinItems { get; set; } |
| | | 33 | | /// <summary> |
| | | 34 | | /// <summary> |
| | | 35 | | /// Gets the maximum count. From ValidateCountAttribute.MaxLength |
| | | 36 | | /// </summary> |
| | 1 | 37 | | public int? MaxItems { get; set; } |
| | | 38 | | /// <summary> |
| | | 39 | | /// Gets or sets whether to validate not null or empty. From ValidateNotNullOrEmptyAttribute |
| | | 40 | | /// </summary> |
| | 1 | 41 | | public bool? ValidateNotNullOrEmptyAttribute { get; set; } |
| | | 42 | | /// <summary> |
| | | 43 | | /// Gets or sets whether to validate not null. From ValidateNotNullAttribute |
| | | 44 | | /// </summary> |
| | 1 | 45 | | public bool? ValidateNotNullAttribute { get; set; } |
| | | 46 | | /// <summary> |
| | | 47 | | /// Gets or sets whether to validate not null or white space. From ValidateNotNullOrWhiteSpaceAttribute |
| | | 48 | | /// </summary> |
| | 1 | 49 | | public bool? ValidateNotNullOrWhiteSpaceAttribute { get; set; } |
| | | 50 | | } |