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
I've been using your plugin for a while as the best way to do validation in my Xamarin project.
However, with the recent update to FluentValidation 9.0.1 the plugin does not work any more. The FluentValidation.ValidatorAttribute package is not supported on 9.+ and that gives a challenge in the AbstractValidationViewModel method:
public ValidationResult GetValidationResult()
{
var attributeFactory = new AttributedValidatorFactory();
var type = GetType();
var validator = attributeFactory.GetValidator(type);
var results = validator.Validate(this);
return results;
}
as the AttributedValidatorFactory doesn’t exist any more. I'm not sure how to work around this?
The migration documentation in FluentValidation suggests using an IoC container instead - but that seems quite another approach to what this plugin does - so I'm not sure how to do this (still a little new on DI though I'm building on Prism using DryIoc).
Hoping to get some suggestions to go with.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
john-dalsgaard
changed the title
How to use FluentValidation 9.+ with this pål
How to use FluentValidation 9.+ with this plugin
Jul 27, 2020
I've been using your plugin for a while as the best way to do validation in my Xamarin project.
However, with the recent update to FluentValidation 9.0.1 the plugin does not work any more. The
FluentValidation.ValidatorAttribute
package is not supported on 9.+ and that gives a challenge in theAbstractValidationViewModel
method:as the
AttributedValidatorFactory
doesn’t exist any more. I'm not sure how to work around this?The migration documentation in FluentValidation suggests using an IoC container instead - but that seems quite another approach to what this plugin does - so I'm not sure how to do this (still a little new on DI though I'm building on Prism using DryIoc).
Hoping to get some suggestions to go with.
Thanks in advance!
The text was updated successfully, but these errors were encountered: