SharpGrip / FluentValidation.AutoValidation

SharpGrip FluentValidation AutoValidation is an extension of the FluentValidation library enabling automatic asynchronous validation in MVC controllers and minimal APIs (endpoints).
https://sharpgrip.net
MIT License
103 stars 7 forks source link

Removed dependency on IServiceProvider from ctor. #25

Closed mgernand closed 10 months ago

mgernand commented 10 months ago

The service provider is available via the HTTP context.

mvdgun commented 10 months ago

Hi @mgernand, thanks for your contribution!

I just changed the target branch to release/1.4 where all the new v1.4 code is at. It appears that there are conflicts that need to be resolved.

Regarding your changes; could we also do the same thing for the MVC filter? I don't have the time to test it myself unfortunately.

mgernand commented 10 months ago

Hi @mvdgun, I haven't see the release/1.4 branch, because I only copied the main branch when forking. I'll abanon this PR and will send another one with the changes to release/1.4. And I'll look into the MVC filter too.

mgernand commented 10 months ago

@mvdgun Please see the new PR #26 🙂