Method ValidateAnnotations(IRouteDefinition, ValidationSeverity, bool, IServiceProvider?)

Assembly: redb.Route.Validation.Adapters.dll

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)