Method 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)