remove nuget package refs no longer required after move to net5.0
Upgraded to latest FluentValidator 10.3.4 (from 8.0.0).
The ValidatorAttribute was deprecated in v8 so we dropped support for it. The assemblies containg the IArgModels will be scanned for validators if they aren't registered with a DI container.
Alternatively, you can provide a factory func via
CommandDotNet.FluentValidation targets net5.0 instead of netstandard2.0. This will allow us to take advantage of new framework features. We're holding off on net6.0 at the moment because it's new enough many companies will not be able to adopt it yet.
Added support for Localization
Changed name of middleware method from ValidateModels to FluentValidationForModels. This will only be relevant when reviewing the stacktrace or printing the AppConfig.
Nullable Reference Types#
The library has been updated to support Nullable Reference Types
add MiddlewareSteps.FluentValidation, declaring the stage and order within the stage the middleware is registered
remove extra NewLine when help will not be shown
showHelpOnError parameter to show help after validation errors
improve stack traces with AppOutputBase and PathMap project settings
Upgrade to FluentValidation 8.0