Class ValidationDslExtensions
Fluent DSL helpers for attaching the
and adapters to a route definition.
public static class ValidationDslExtensions
Inheritance
Methods
ValidateAnnotations(IRouteDefinition, ValidationSeverity, bool, IServiceProvider?)
Attaches a DataAnnotations validator as an inline pipeline step.
public static IRouteDefinition ValidateAnnotations(this IRouteDefinition route, ValidationSeverity severity = ValidationSeverity.Error, bool throwOnFailure = true, IServiceProvider? serviceProvider = null)
ValidateFluent<T>(IRouteDefinition, IValidator<T>, ValidationSeverity, bool)
Attaches a FluentValidation validator as an inline pipeline step.
public static IRouteDefinition ValidateFluent<T>(this IRouteDefinition route, IValidator<T> validator, ValidationSeverity severity = ValidationSeverity.Error, bool throwOnFailure = true)