You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FluentValidation #1959 states that FluentValidation.AspNetCore and the auto-validation feature will be deprecated, unless the community supports and owns the repository.
Another alternative is to use Middleware / Action Filter, and I'm hoping a kind soul creates a solution for that.
In the meantime, let's stick with the auto-validation feature.
Changes required:
Replace .AddFluentValidation(fv => fv.RegisterValidatorsFromAssembly(Assembly.GetExecutingAssembly())) with .AddValidatorsFromAssembly(Assembly.GetExecutingAssembly())
Replace NuGet package FluentValidation.AspNetCore with FluentValidation
Add pipeline
The text was updated successfully, but these errors were encountered:
FluentValidation #1959 states that
FluentValidation.AspNetCore
and the auto-validation feature will be deprecated, unless the community supports and owns the repository.Another alternative is to use Middleware / Action Filter, and I'm hoping a kind soul creates a solution for that.
In the meantime, let's stick with the auto-validation feature.
Changes required:
.AddFluentValidation(fv => fv.RegisterValidatorsFromAssembly(Assembly.GetExecutingAssembly()))
with.AddValidatorsFromAssembly(Assembly.GetExecutingAssembly())
FluentValidation.AspNetCore
withFluentValidation
The text was updated successfully, but these errors were encountered: