amantinband / clean-architecture

The ultimate clean architecture template for .NET applications 💪
MIT License
1.4k stars 221 forks source link

The FluentValidation.AspNetCore package is no longer being maintained #17

Closed viktorsarkany closed 5 months ago

xavierjohn commented 6 months ago

Where does it say that? https://docs.fluentvalidation.net/en/latest/

ccaesarw commented 5 months ago

In the README.md https://github.com/FluentValidation/FluentValidation.AspNetCore/commit/347b0535e5fe93bdc39ca031b3f971e0af1619b4

They recommend moving away from this package and use the core FluentValidation package with a manual validation approach as detailed at https://docs.fluentvalidation.net/en/latest/aspnet.html

xavierjohn commented 5 months ago

I replaced FluentValidation.AspNetCore with FunctionalDdd.FluentValidation https://github.com/xavierjohn/clean-architecture/commit/02234fb93c5b0f29ec18f38911a71e6788f17192

Invalid commands can no longer be created. The constructor is private and does not rely on mediator Validation Behaviour.