Also asked on StackOverflow: http://stackoverflow.com/questions/24698665/fluentvalidation-for-asp-net-web-api-2-0-wont-validate-complex-properties
I have the following example:
Id #7191 | Release:
| Updated: Jul 15 at 7:16 AM by rankovskiGorgi | Created: Jul 13 at 8:09 AM by rankovskiGorgi
RuleFor(x => x.TestList).SetCollectionValidator(new RegisterTestValidator())
.OverridePropertyName("testing") //doesn't work
Result: ends up like "TestList.Test" instead of "testing....
Id #7190 | Release:
| Updated: Jul 15 at 9:00 PM by user94857 | Created: Jul 10 at 7:28 AM by user94857
I have a string property that I use as an id. It's valid if it's null or between 8 and 16 characters. Is there a way to do this without using a Must?
Id #7189 | Release:
| Updated: Jul 10 at 8:20 AM by user94857 | Created: Jul 3 at 3:26 PM by blake05
Happy to help if/once I understand how to do it. Being able to use FV with MVC & Web Api with a container seems like it would a common use-case for a lot of folks.
Id #7188 | Release:
| Updated: Jun 30 at 2:28 PM by MotoWilliams | Created: Jun 30 at 2:28 PM by MotoWilliams
I need to validate two textboxes based on dropdownselect. It is dependency validation. for this I am using FluentValidation. Key thing is here, values of dropdownlist is language specification. (Ru...
Id #7187 | Release:
| Updated: Jun 2 at 4:08 PM by ItsMeSri | Created: Jun 2 at 4:08 PM by ItsMeSri
I am trying to validate dropdown list using FluentValidation. I think I am doing wrong, but not able to find to solution. I need your help.
Id #7185 | Release:
| Updated: May 30 at 6:19 PM by ItsMeSri | Created: May 30 at 6:19 PM by ItsMeSri
While performing a Microsoft Platform Ready test for Windows Sever 2012 R2 we encounter a failed test, caused by missing Company Information in the DLL files of the Fluent Validation files. I have ...
Id #7184 | Release:
| Updated: May 28 at 8:43 AM by JeremyS | Created: May 27 at 7:30 PM by PaulBoerefijn
It appears the regex you are using doesn't cater for domains such as .co.uk i.e.
a user enters incorrectly mike.james@test..co.uk
when it should be firstname.lastname@example.org
see my demo o...
Id #7183 | Release:
| Updated: May 27 at 4:10 PM by JeremyS | Created: May 27 at 3:34 PM by itsmemikejames
Validating child properties like this:
_validator.ShouldHaveValidationErrorFor(el => el.Child.Child.Property, model);
Id #7182 | Release:
| Updated: May 21 at 2:41 PM by JavedSaqib | Created: May 21 at 1:22 PM by maziarkaradoslaw
When I use portable library in Silverlight 4 application, I get this error: "'RuleFor' is not supported by the language".
Here is code snippet:
Id #7181 | Release:
| Updated: May 16 at 8:28 AM by AntonZhidkov | Created: May 16 at 7:25 AM by AntonZhidkov