Skip to main content

IValidatorDescriptor

Provides metadata about a validator.

Assembly: ServiceStack.dll
View Source
Declaration
public interface IValidatorDescriptor

Methods

GetName(String)

Gets the name display name for a property.

View Source
Declaration
string GetName(string property)
Returns

System.String

Parameters
TypeName
System.Stringproperty

GetMembersWithValidators()

Gets a collection of validators grouped by property.

View Source
Declaration
ILookup<string, IPropertyValidator> GetMembersWithValidators()
Returns

System.Linq.ILookup<System.String,ServiceStack.FluentValidation.Validators.IPropertyValidator>

GetValidatorsForMember(String)

Gets validators for a particular property.

View Source
Declaration
IEnumerable<IPropertyValidator> GetValidatorsForMember(string name)
Returns

System.Collections.Generic.IEnumerable<ServiceStack.FluentValidation.Validators.IPropertyValidator>

Parameters
TypeName
System.Stringname

GetRulesForMember(String)

Gets rules for a property.

View Source
Declaration
IEnumerable<IValidationRule> GetRulesForMember(string name)
Returns

System.Collections.Generic.IEnumerable<ServiceStack.FluentValidation.IValidationRule>

Parameters
TypeName
System.Stringname