Skip to main content

Namespace ServiceStack.FluentValidation.Validators

Classes

AbstractComparisonValidator

Base class for all comparison validators

AspNetCoreCompatibleEmailValidator

AsyncPredicateValidator

Asynchronous custom validator

AsyncValidatorBase

Defines a property validator that can be run asynchronously.

[ ChildValidatorAdaptor<T, TProperty>](../ServiceStack.FluentValidation.Validators/ChildValidatorAdaptorT, TProperty)

CreditCardValidator

Ensures that the property value is a valid credit card number.

CustomContext

Custom validation context

CustomValidator<T>

Custom validator that allows for manual/direct creation of ValidationFailure instances.

EmailValidator

EmptyValidator

EnumValidator

EqualValidator

ExactLengthValidator

ExclusiveBetweenValidator

GreaterThanOrEqualValidator

GreaterThanValidator

InclusiveBetweenValidator

LengthValidator

LessThanOrEqualValidator

LessThanValidator

MaximumLengthValidator

MinimumLengthValidator

NoopPropertyValidator

NotEmptyValidator

NotEqualValidator

NotNullValidator

NullValidator

OnFailureValidator<T>

[ PolymorphicValidator<T, TProperty>](../ServiceStack.FluentValidation.Validators/PolymorphicValidatorT, TProperty)

Performs runtime checking of the value being validated, and passes validation off to a subclass validator.

PredicateValidator

PropertyValidator

PropertyValidatorContext

RegularExpressionValidator

ScalePrecisionValidator

Allows a decimal to be validated for scale and precision. Scale would be the number of digits to the right of the decimal point. Precision would be the number of digits. This number includes both the left and the right sides of the decimal point.

It can be configured to use the effective scale and precision (i.e. ignore trailing zeros) if required.

123.4500 has an scale of 4 and a precision of 7, but an effective scale and precision of 2 and 5 respectively.

StringEnumValidator

Interfaces

IBetweenValidator

IChildValidatorAdaptor

Indicates that this validator wraps another validator.

IComparisonValidator

Defines a comparison validator

IEmailValidator

IEmptyValidator

ILengthValidator

INotEmptyValidator

INotNullValidator

INullValidator

IPredicateValidator

IPropertyValidator

A custom property validator. This interface should not be implemented directly in your code as it is subject to change. Please inherit from ServiceStack.FluentValidation.Validators.PropertyValidator?text=PropertyValidator instead.

IRegularExpressionValidator

Enums

Comparison

EmailValidationMode

Defines which mode should be used for email validation.