New Post: Web API 2
I'm still having trouble reproducing this - in my unit tests if I leave the response empty then no additional validation errors are generated. Any chance you can put together a small sample that...
View ArticleNew Post: Web API 2
Jeremy, I created test project, you can download it from http://www.sendspace.com/file/zhhb99. This is test request $.ajax({ url: 'http://localhost:60233/api/Values/Post', type: "POST", data:...
View ArticleCreated Unassigned: MVC/WebApi integration woes [7179]
The MVC/WebApi integration sucks and needs re-doing:1) FV takes the approach of "set all the properties, then validate the whole object in one go", whilst MVC and WebApi take the approach of "validate...
View ArticleNew Post: Web API 2
OK, so this seems to come from WebApi in the situation when no value was provided for a non-nullable value type (in this case, Age as it's a integer), which is similar to how MVC works in this...
View ArticleNew Post: Web API 2
Some more detail on your initial problem: the unit tests weren't picking this up as they were using json for all their input. It looks like the different formatters behave differently - so if you're...
View ArticleNew Post: Web API 2
So I spent several hours stepping through the WebApi code to try and figure out what was going on, and unfortunately I can't find a way around it. Looking at the code for...
View ArticleCreated Unassigned: Error while using InclusiveBetween with Int16? [7180]
I have a property of type Int16? since in database it is defined as tinyint. [Display(Name = "Model Year")]public Int16? ModelYear { get; set; }Now only the model year between 1950 to 2030 is valid and...
View ArticleCreated Unassigned: "'RuleFor' is not supported by the language" in...
When I use portable library in Silverlight 4 application, I get this error: "'RuleFor' is not supported by the language".Here is code snippet:{{namespace FluentValidationCheck{ public partial class...
View ArticleCommented Unassigned: "'RuleFor' is not supported by the language" in...
When I use portable library in Silverlight 4 application, I get this error: "'RuleFor' is not supported by the language".Here is code snippet:{{namespace FluentValidationCheck{ public partial class...
View ArticleCommented Unassigned: Error while using InclusiveBetween with Int16? [7180]
I have a property of type Int16? since in database it is defined as tinyint. [Display(Name = "Model Year")]public Int16? ModelYear { get; set; }Now only the model year between 1950 to 2030 is valid and...
View ArticleClosed Unassigned: Error while using InclusiveBetween with Int16? [7180]
I have a property of type Int16? since in database it is defined as tinyint. [Display(Name = "Model Year")]public Int16? ModelYear { get; set; }Now only the model year between 1950 to 2030 is valid and...
View ArticleCommented Unassigned: "'RuleFor' is not supported by the language" in...
When I use portable library in Silverlight 4 application, I get this error: "'RuleFor' is not supported by the language".Here is code snippet:{{namespace FluentValidationCheck{ public partial class...
View ArticleNew Post: Check child objects
Hi You can use a Must rule to do this - the Must method takes a delegate where you can perform custom logic:class MyValidator:AbstractValidator<Parent> { public MyValidator() { RuleFor(x =>...
View ArticleNew Post: Custom property validator injection
Hi Olivier I can't really answer the question "is this architecture correct" as this is quite subjective and really depends on the project you're working on, so without knowing more details of the...
View ArticleCreated Unassigned: Email Validation Error for .co.uk and such domains [7183]
Hi,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.ukwhen it should be mike.james@test.co.uksee my demo on...
View ArticleCommented Unassigned: Email Validation Error for .co.uk and such domains [7183]
Hi,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.ukwhen it should be mike.james@test.co.uksee my demo on...
View ArticleSource code checked in, #4555a33fa7a7430c528eacb8f5c16d15f7d62d15
Fix issue with email validation
View ArticleCommented Unassigned: Email Validation Error for .co.uk and such domains [7183]
Hi,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.ukwhen it should be mike.james@test.co.uksee my demo on...
View ArticleCreated Unassigned: Microsoft Platform Ready test fails on missing Company...
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...
View Article