Updated Wiki: mvc
Integration with ASP.NET MVC FluentValidation can be integrated with ASP.NET MVC 3 and ASP.NET MVC 4. Once enabled, MVC will use FluentValidation to validate objects that are passed in to controller...
View ArticleUpdated Wiki: mvc
Integration with ASP.NET MVC FluentValidation can be integrated with ASP.NET MVC 3 and ASP.NET MVC 4. Once enabled, MVC will use FluentValidation to validate objects that are passed in to controller...
View ArticleNew Post: MVC 3 - Wrong property name in javascript validation while...
Hi, Using WithLocalizedMessage works with javascript as expected but when using the format string arg {PropertyName}. The property name is still the initial language after switching to another ui...
View ArticleNew Post: MVC 3 - Wrong property name in javascript validation while...
Hi Martijn Using a localized DisplayAttribute isn't something that FluentValidation currently supports. I'll get this added to the next version. Jeremy
View ArticleSource code checked in, #8aacd3be1ad2ced2be247a2a8874aa079751387a
Allow lazy loading of display name, meaning you can now localize the display name using the DisplayAttribute
View ArticleNew Post: MVC 3 - Wrong property name in javascript validation while...
Implemented in latest commit. Jeremy
View ArticleNew Post: MVC 3 - Wrong property name in javascript validation while...
Thanks, that was quick. Martijn
View ArticleNew Post: FluentValidation does not honour ModelMetadata.IsRequired
I'm using a custom ModelMetadataProvider to help build a dynamic UI. One thing that it does is to set ModelMetadata.IsRequired based on whether the property is required or not. With the default...
View ArticleNew Post: String Validation
Does anyone know why error messages clear on a valid selections on controls with numeric values but error messages don't clear on character values? Doesn't seem to matter the kind of control (drop...
View ArticleNew Post: Breaking change in 4.0?
Hi, As developers of Catel we also provide a FluentValidation extension. Now one of my workitems for today was to upgrade FluentValidation to 4.0, but then one of our unit tests failed. After a bit of...
View ArticleNew Post: Breaking change in 4.0?
And I should read the release notes before I start a new thread. You clearly noted this as a breaking change, my bad.
View ArticleNew Post: Breaking change in 4.0?
Hi I did think for a while whether or not I should make this change as I knew it would be breaking, but I think it's better in the long run. This brings the Length validator in-line with other...
View ArticleNew Post: Breaking change in 4.0?
I partly agree with you. It's still not valid, so maybe the others are wrong. But I understand your point of view on the framework-side, so it's a good decision to keep it all the same.
View ArticleNew Post: Setting child collection properties validation result based on parent
Hi, I have the requirement to apply validation on partial views sharing same model. here is my model - (used in partial view and parent view both) public class AdditionalHoldersFormModel{ public...
View ArticleNew Post: Unify projects to create a better validator
Hi all: I've been seen both validators, Rules Engine and Fluent Validation, from: https://rulesengine.codeplex.com/ I think that will be a good idea to mix them and create some RE-FV with the best of...
View ArticleCreated Unassigned: ValidatorType Replace- RemoveRule [7143]
What type is the following validator:RuleFor(x => x.Surname).Length(1, 140).Unless(MyUnlessMethod);The Replace/RemoveRule methods needs a type, but when I supply it with typeof(LengthValidator) it...
View ArticleNew Post: Unify projects to create a better validator
Thanks for the suggestion. I don't think unifying the projects is something that would be practical, and isn't something that I personally have an interest in doing, but I am always open to feature...
View ArticleCommented Unassigned: ValidatorType Replace- RemoveRule [7143]
What type is the following validator:RuleFor(x => x.Surname).Length(1, 140).Unless(MyUnlessMethod);The Replace/RemoveRule methods needs a type, but when I supply it with typeof(LengthValidator) it...
View ArticleUpdated Wiki: Documentation
This documentation is for the 4.0 release of FluentValidation.Creating a Validator ClassChaining ValidatorsValidation ResultsThrowing ExceptionsRe-using Validators on Complex PropertiesRe-using...
View ArticleUpdated Wiki: Validators
Built in Validators FluentValidation ships with several built-in validators. The error message for each validator can contain special placeholders that will be filled in when the error message is...
View Article