A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/micro-elements/MicroElements.Swashbuckle.FluentValidation/issues/97 below:

Using FluentValidation instead of FluentValidation.AspNetCore · Issue #97 · micro-elements/MicroElements.Swashbuckle.FluentValidation · GitHub

Hello @petriashev, thanks for this great library! I've been using it for a while.

I am now using FluentValidation inside a Mediatr pipeline. So now I reference FluentValidation instead of FluentValidation.AspNetCore (otherwise I will get double validation, once by MVC and once inside Mediatr).

Of course that causes this warning:

WRN | MicroElements.Swashbuckle.FluentValidation.FluentValidationRules | ValidatorFactory is not provided. Please register FluentValidation.

And of course the validation details are not shown in Swagger.

However I am still using FluentValdation, just in a different way. My validator classes are still the same. The container still has registrations for all the validators.

How can I make this work?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4