So I expect to get validation errors for all of the properties here when I try creating a new Book. Instead I receive the following: I don't receive errors about the missing properties and even the message for thenamefield is wrong. This indicates that FluentValidations are not triggering. ...
Fix issue with incorrect rulesets being executed in a child validator when combined with ChildRules (#1981) Bulgarian translations of default messages (#1973)Changes in 11.1.0Added a ToDictionary method to ValidationResult (particularly useful when working with Minimal APIs)- MVC auto validation: ...
Anti-forgery token not working for form action. antiforgery token has any expiration time AntiForgery Tokens on Web API Controllers Any way to pass whole model to controller from view? Application works in IIS Express, but fails when published to IIS 10 Apply a bootstrap class to my Html.Drop...
Anti-forgery token not working for form action. antiforgery token has any expiration time AntiForgery Tokens on Web API Controllers Any way to pass whole model to controller from view? Application works in IIS Express, but fails when published to IIS 10 Apply a bootstrap class to my Html.Drop...
Note that not all rules defined in FluentValidation will work with ASP.NET's client-side validation. For example, any rules defined using a condition (with When/Unless), custom validators, or calls toMustwill not run on the client side. Nor will any rules in aRuleSet(although this can be...
Simply as you can see above, one Validation works and other not. The main difference I found is constructor by default. Member JeremySkinner commented Aug 17, 2018 I'm still having trouble understanding what's not working...as I said before, if you're seeing an error it means the rule...
Things that could validate at the model level, and not a property level. When I use it like that, I think of it more like an 'include'...so it would just add these rules to this validator type of thing. This looks like ``RuleFor(x=>x).SetValidator(new SomeValidator())` My ...
Fix an issue with IncludeRulesNotInRuleSet not working correctly (#1493) 1 change: 1 addition & 0 deletions 1 docs/index.rst Original file line numberDiff line numberDiff line change @@ -46,6 +46,7 @@ Example installation start collections inheritance rulesets including-rules upgrading-to-...
Core - Fixed DelegateValidator causes a deadlock when running an async function synchronously. Core - Fixed Equal/NotEqual not working with structs Core - Additional overload of SetValidator that takes a validatorProvider Core - Additional overloads for Length and Matches that take a func for...
I have a partially working example so far. When it's closer to being ready for others to use, I can either send you a pull request, or if you feel this is either not in the spirit of FV or is too much of an edge case to be included in the core framework, then I can also pu...