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

New Post: Cannot implicitly convert type 'IocValidatorFactory' to...

Hi Miguel, I can't see anything obviously wrong there. One thing you could try: cut and paste the methods from ValidatorFactoryBase into your class (not many there...) and make your class directly...

View Article


New Post: Custom Validator Factory: Scan assembly instead of using...

Looks good-thanks!

View Article


New Post: Help getting validation failure field to display correct path

Given a representative class as followspublic class Foo { public IEnumerable<Bar> Bars { get; set; } } public class Bar { public IEnumerable<string> Values { get; set; } } If I validate as...

View Article

New Post: Help getting validation failure field to display correct path

Hi The problem is with ValueValidator. Because you've specified a WithName("Value"), then it will always use this in the property path. AbstractValidator is designed to work on properties of an object,...

View Article

New Post: Help getting validation failure field to display correct path

Alright, that's great thanks. Is there any way to use the RuleForEach in my example above without the duplication of Bars[0]?

View Article


New Post: Help getting validation failure field to display correct path

Looks like a bug - I think you'd need to stick with the collection validator for now. Could you open an issue for the duplicate Bars on the issues page? Thanks.

View Article

New Post: Validator extension "ShouldHaveValidationErrorFor" and checking...

Hi, We have tree class structure, and some properties from leafs are validated only when property from root are checked. Cause it's hard to make conditional validator for whole class, we decided to...

View Article

New Post: Online Library of Custom Validators?

FluentValidation is very cool. The basic set of validation methods is pretty basic, but I particularly like how easy it is to build custom validators. Right away, I found I needed to define a...

View Article


Created Unassigned: ValidatorOptions.PropertyNameResolver interferes with...

I had a suite of Web.Api tests (including both FluentValidation tests and [integration tests](http://www.strathweb.com/2012/06/asp-net-web-api-integration-testing-with-in-memory-hosting/)) that...

View Article


New Post: Validator extension "ShouldHaveValidationErrorFor" and checking...

Looks like a bug - could you create an issue for it in the issue tracker? Calling validate manually is the correct workaround - I'd suggest sticking with this approach for now. Jeremy

View Article

New Post: Online Library of Custom Validators?

It's a nice idea - how about a github repo that people can submit to?

View Article

New Post: Can I only Validate one property?

read the document in bref, I can't find the way to validate one property except define an individual validator with one property. I want the feature: I can define my rules for all property in a class,...

View Article

New Post: Can I only Validate one property?

There's an overload of Validate that takes a params array of property names to validate.validator.Validate(new Person(), "Surname"); validator.Validate(new Person(), "Surname", "Firstname"); etc.

View Article


New Post: Web API 2

Hi, I can't find property AddImplicitRequiredAttributeForValueTypes in newset webapi fluentvalidation nuget. Is it removed?

View Article

New Post: Web API 2

This is an MVC-specific property. It doesn't exist for WebApi.

View Article


New Post: Web API 2

Jeremy, thank you for fast reply. I have problem with some default validation of web api. On every required property that is empty I have two validations, one from fluent and another from WebApi with...

View Article

New Post: Web API 2

Hmm, I don't personally have any experience with WebApi (WebApi support was contributed by someone else), but MVC has a similar problem - the message can't be turned off and the only way to get around...

View Article


New Post: Web API 2

Could you provide some sample data (as json) and a class definition that reproduces the issue? Thanks

View Article

New Post: Web API 2

[DataContract] public class ConfirmPaymentRequest { [DataMember] public string TransactionId { get; set; } [DataMember] public string CustomerAuthenticationToken { get; set; } } Class looks something...

View Article

New Post: Web API 2

Jeremy thank you for fast responses and for you cooperation. One more thing, I needed FluentValidation.WebApi-Signed nuget. Nuget search can't find it. I found it by googling...

View Article
Browsing all 1917 articles
Browse latest View live


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