Skip to main content

ValidatorOptions

Validator runtime options

Assembly: ServiceStack.dll
View Source
Declaration
public static class ValidatorOptions

Properties

Global

Global configuration for all validators.

View Source
Declaration
public static ValidatorConfiguration Global { get; }

CascadeMode

Default cascade mode

View Source
Declaration
[Obsolete("This property will be removed in FluentValidation 10. Use ValidatorOptions.Global.CascadeMode instead.")]
public static CascadeMode CascadeMode { get; set; }

PropertyChainSeparator

Default property chain separator

View Source
Declaration
[Obsolete("This property will be removed in FluentValidation 10. Use ValidatorOptions.Global.PropertyChainSeparator instead.")]
public static string PropertyChainSeparator { get; set; }

LanguageManager

Default language manager

View Source
Declaration
[Obsolete("This property will be removed in FluentValidation 10. Use ValidatorOptions.Global.LanguageManager instead.")]
public static ILanguageManager LanguageManager { get; set; }

ValidatorSelectors

Customizations of validator selector

View Source
Declaration
[Obsolete("This property will be removed in FluentValidation 10. Use ValidatorOptions.Global.ValidatorSelectors instead.")]
public static ValidatorSelectorOptions ValidatorSelectors { get; }

MessageFormatterFactory

Specifies a factory for creating MessageFormatter instances.

View Source
Declaration
[Obsolete("This property will be removed in FluentValidation 10. Use ValidatorOptions.Global.MessageFormatterFactory instead.")]
public static Func<MessageFormatter> MessageFormatterFactory { get; set; }

PropertyNameResolver

Pluggable logic for resolving property names

View Source
Declaration
[Obsolete("This property will be removed in FluentValidation 10. Use ValidatorOptions.Global.PropertyNameResolver instead.")]
public static Func<Type, MemberInfo, LambdaExpression, string> PropertyNameResolver { get; set; }

DisplayNameResolver

Pluggable logic for resolving display names

View Source
Declaration
[Obsolete("This property will be removed in FluentValidation 10. Use ValidatorOptions.Global.DisplayNameResolver instead.")]
public static Func<Type, MemberInfo, LambdaExpression, string> DisplayNameResolver { get; set; }

DisableAccessorCache

Disables the expression accessor cache. Not recommended.

View Source
Declaration
[Obsolete("This property will be removed in FluentValidation 10. Use ValidatorOptions.Global.DisableAccessorCache instead.")]
public static bool DisableAccessorCache { get; set; }

ErrorCodeResolver

Pluggable resolver for default error codes

View Source
Declaration
[Obsolete("This property will be removed in FluentValidation 10. Use ValidatorOptions.Global.ErrorCodeResolver instead.")]
public static Func<PropertyValidator, string> ErrorCodeResolver { get; set; }