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
Type | Name |
---|---|
System.String | property |
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
Type | Name |
---|---|
System.String | name |
GetRulesForMember(String)
Gets rules for a property.
View Source
Declaration
IEnumerable<IValidationRule> GetRulesForMember(string name)
Returns
System.Collections.Generic.IEnumerable<ServiceStack.FluentValidation.IValidationRule>
Parameters
Type | Name |
---|---|
System.String | name |