Quantcast
Channel: Fluent Validation for .NET
Browsing all 1917 articles
Browse latest View live
↧

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 Article


New 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 Article


Created 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 Article

New 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 Article

New 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 Article


New 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 Article

Created 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 Article

Created 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 Article


Commented 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 Article


Commented 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 Article

Closed 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 Article

Commented 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 Article

New 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 Article


New 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 Article

New Post: Check child objects

Of course, thank you, works like a charm.

View Article


Created 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 Article

Commented 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 Article


Source code checked in, #4555a33fa7a7430c528eacb8f5c16d15f7d62d15

Fix issue with email validation

View Article

Commented 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 Article

Created 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
Browsing all 1917 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>