Skip to main content

ValidateEmptyAttribute

Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public class ValidateEmptyAttribute : ValidateAttribute, _Attribute, IValidateRule, IReflectAttributeConverter

Inherited Properties

AllConditions

View Source
Declaration
public string[] AllConditions { get; set; }

AnyConditions

View Source
Declaration
public string[] AnyConditions { get; set; }

Condition

Boolean #Script Code Expression to Test ARGS:

  • Request: IRequest
  • dto: Request DTO
  • field: Property Name
  •  it: Property Value
View Source
Declaration
public string Condition { get; set; }

ErrorCode

Custom ErrorCode to return

View Source
Declaration
public string ErrorCode { get; set; }

Message

Refer to FluentValidation docs for Variable

  • {PropertyName}
  • {PropertyValue}
View Source
Declaration
public string Message { get; set; }

Validator

Script Expression to create an IPropertyValidator registered in Validators.Types

View Source
Declaration
public string Validator { get; set; }

Inherited Methods

Combine(String, String[])

View Source
Declaration
public static string Combine(string comparand, params string[] conditions)
Returns

System.String

Parameters
TypeName
System.Stringcomparand
System.String[]conditions

ToReflectAttribute()

View Source
Declaration
public ReflectAttribute ToReflectAttribute()
Returns

ServiceStack.ReflectAttribute

Implements