1
I Use This!
Activity Not Available

News

Posted about 11 years ago by nportelli
Yes using ASP.NET MVC. Message says that the field can't be empty. If it's coming from MVC I'm not sure from where. I didn't think it had validation built in. There are not data annotations on the model. Just weird.
Posted about 11 years ago by JeremyS
Hi What message are you seeing? Are you using ASP.NET MVC? If so, it's likely that this message is coming from MVC, not from FluentValidation.
Posted about 11 years ago by nportelli
How do you tell FluentValidation that it's ok something is empty or the default value?
Posted about 11 years ago by JeremyS
If you find FluentValidation useful, please consider making a donation. Changes in this release: Added Czech and Finish translation of default error messages Allow nullable target properties for greater/less validators Apply pull request: RuleForEach doesn't respect When condition Remove support for MVC4 Fix dependency for WebApi integration
Posted about 11 years ago by
If you find FluentValidation useful, please consider making a donation. Changes in this release: Added Czech and Finish translation of default error messages Allow nullable target properties for greater/less validators Apply pull request: ... [More] RuleForEach doesn't respect When condition Remove support for MVC4 Fix dependency for WebApi integration [Less]
Posted about 11 years ago by JeremyS
NuGet Packages are available FluentValidation The core FluentValidation assembly available either for .NET 4.0/4.5 or as a portable class library for Silverlight and Windows Phone 8 Install-Package FluentValidation FluentValidation.Mvc5Integration ... [More] for ASP.NET MVC 5 Install-Package FluentValidation.Mvc5 FluentValidation.WebApiIntegration for ASP.NET Web API 2 Install-Package FluentValidation.WebApi Signed Packages Please note that signed packages are considered deprecated. With the release of FluentValidation 6, signed packages will not be available. Signed binaries are also available if you need them using the following packages: FluentValidation-Signed FluentValidation.Mvc5-signed [Less]
Posted about 11 years ago by JeremyS
NuGet Packages are available FluentValidation The core FluentValidation assembly available either for .NET 4.0/4.5 or as a portable class library for Silverlight and Windows Phone 8 Install-Package FluentValidation FluentValidation.Mvc5Integration ... [More] for ASP.NET MVC 5 Install-Package FluentValidation.Mvc5 FluentValidation.WebApiIntegration for ASP.NET Web API 2 Install-Package FluentValidation.WebApi Signed Packages Please note that signed packages are considered deprecated. With the release of FluentValidation 6, signed packages will not be available. Signed binaries are also available if you need them using the following packages:Please be aware that signed packages are not recommended, and will not be supported long-term. FluentValidation-Signed FluentValidation.Mvc5-signed [Less]
Posted about 11 years ago by Jeremy Skinner
Update version number
Posted about 11 years ago by Jeremy Skinner
Remove MVC4 build steps - MVC4 support finished in FV 5.1
Posted about 11 years ago by maziarkaradoslaw
https://fluentvalidation.codeplex.com/discussions/544810Validating child properties like this:``` _validator.ShouldHaveValidationErrorFor(el => el.Child.Child.Property, model);```,throws error cause in ValidatorTester it checks only ... [More] this.accessor.Member.Name. Shouldn't it get path like that: http://stackoverflow.com/a/3049904/1202306 ? Now we have to write tests like that:``` var result = _validator.Validate(dto); var error = result.Errors.FirstOrDefault(el => el.PropertyName == "Child.Child.Property"); Assert.IsNotNull(error);``` [Less]