1
I Use This!
Activity Not Available

News

Posted about 11 years ago by razaross
I'm new to Fluent Validation and just got the version 5.3 from nuGet yesterday. I'm trying to apply an existing validator to a collection property of a class. The documentation here says to use: RuleFor(x => x.Orders).SetCollectionValidator(new ... [More] OrderValidator()); However, the SetCollectionValidator() method is not available on the version I have. Instead, there is only SetValidator() which is marked as [deprecated]. What am I missing here? [Less]
Posted about 11 years ago by sfuqua
I have successfully integrated FluentValidation into my MVC5 project. One of the simpler rules in my validator class is: RuleFor(x => x.DisplayName) .NotEmpty() .WithLocalizedMessage(() => SharedResources.VALIDATOR_REQUIRED); ... [More] VALIDATOR_REQUIRED is set to "{PropertyName} Required". In my view, I have a Validation Summary and this: <div class="editor-field"> @Html.EditorFor(m => m.DisplayName) @Html.ValidationMessageFor(m => m.DisplayName) </div> Which becomes <div class="editor-field"> <input name="DisplayName" class="text-box single-line" id="DisplayName" type="text" value=""> <span class="field-validation-valid" data-valmsg-replace="true" data-valmsg-for="DisplayName"></span> </div> When I submit with a blank DisplayName, the validation summary has the text "Display Name Required" as expected, but the validation message does not show up next to the editor. Any suggestions on what I'm doing incorrectly here? I noticed that FluentValidation automatically inserted a space "DisplayName", which is great for the validation summary. Any chance that is messing up the individual validator? Thanks. [Less]
Posted about 11 years ago by JeremyS
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 already taken actions like signing all DLL file with ... [More] a document signing certificate. I'm an expierienced software packager, without any knowledge about building DLL files or compiling sources. How can i apply a Company Name to the Fluent Validation DLL files? Is there a possibility to apply a Company Name to a new version?Hopefully someone can tell me the easyest way to complete my job. The Microsoft Platform Readiness Test tells me this:Action: Add valid file information to owned binaries. -Binaries not built by product group or company can be considered 3rd party.-Binaries without proper file version information will fail this test case and require waiver. -Interop files do not provide file information by design, and are excluded from this list.===05/27/2014 16:44:10 :: Binary listC:\Program Files\Level-7 Connect\website\bin\de\FluentValidation.resources.dll does not have a valid "Company name" property.Comments: Yes, if it would help I can certainly add this for a future build, although I'm not planning on doing a new release for a while so you still might want to get your devs to recompile in the meantime. Still, it's very odd that this is a requirement! [Less]
Posted about 11 years ago by PaulBoerefijn
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 already taken actions like signing all DLL file with ... [More] a document signing certificate. I'm an expierienced software packager, without any knowledge about building DLL files or compiling sources. How can i apply a Company Name to the Fluent Validation DLL files? Is there a possibility to apply a Company Name to a new version?Hopefully someone can tell me the easyest way to complete my job. The Microsoft Platform Readiness Test tells me this:Action: Add valid file information to owned binaries. -Binaries not built by product group or company can be considered 3rd party.-Binaries without proper file version information will fail this test case and require waiver. -Interop files do not provide file information by design, and are excluded from this list.===05/27/2014 16:44:10 :: Binary listC:\Program Files\Level-7 Connect\website\bin\de\FluentValidation.resources.dll does not have a valid "Company name" property.Comments: Hi Jeremy, I think you're right. I will ask a developer to compile these DLL files for me. However, specifyng a Company Name in a DLL file is such a basic thing that i'm keep wondering why it isn't filled. Reading the requirements of a platform test it look likes very easy to have a Company and Product name in the properties of your DLL and EXE files. But it's a hard job to work around such a issue if it isn't filled in. What's the problem to fill the Company Name with something like Fluent to comply with Microsoft's Platform Requirements in the future? Thanks for your help! [Less]
Posted about 11 years ago by JeremyS
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 already taken actions like signing all DLL file with ... [More] a document signing certificate. I'm an expierienced software packager, without any knowledge about building DLL files or compiling sources. How can i apply a Company Name to the Fluent Validation DLL files? Is there a possibility to apply a Company Name to a new version?Hopefully someone can tell me the easyest way to complete my job. The Microsoft Platform Readiness Test tells me this:Action: Add valid file information to owned binaries. -Binaries not built by product group or company can be considered 3rd party.-Binaries without proper file version information will fail this test case and require waiver. -Interop files do not provide file information by design, and are excluded from this list.===05/27/2014 16:44:10 :: Binary listC:\Program Files\Level-7 Connect\website\bin\de\FluentValidation.resources.dll does not have a valid "Company name" property.Comments: Hi It seems bizarre that this would be a requirement for the test to pass! FluentValidation isn't built by a company, so the assembly information (correctly) doesn't contain a company name. I think the only way to do this would be to modify the source code and apply your own company name directly to the AssemblyInfo files (it's fine to do this - the license permits it providing all copyright information remains intact). If you're uncertain on how to do this yourself then I'd suggest speaking to one of the devs on your team. I'm afraid I don't know of any way of adding this without recompiling. [Less]
Posted about 11 years ago by PaulBoerefijn
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 already taken actions like signing all DLL file with ... [More] a document signing certificate. I'm an expierienced software packager, without any knowledge about building DLL files or compiling sources. How can i apply a Company Name to the Fluent Validation DLL files? Is there a possibility to apply a Company Name to a new version?Hopefully someone can tell me the easyest way to complete my job. The Microsoft Platform Readiness Test tells me this:Action: Add valid file information to owned binaries. -Binaries not built by product group or company can be considered 3rd party.-Binaries without proper file version information will fail this test case and require waiver. -Interop files do not provide file information by design, and are excluded from this list.===05/27/2014 16:44:10 :: Binary listC:\Program Files\Level-7 Connect\website\bin\de\FluentValidation.resources.dll does not have a valid "Company name" property. [Less]
Posted about 11 years ago by JeremyS
Hi,It appears the regex you are using doesn't cater for domains such as .co.uk i.e.a user enters __incorrectly__ [email protected] it should be [email protected] my demo on debuggex:https://www.debuggex.com/r/2M165eW57qhx9f_FOnce its ... [More] a validated bug, how soon do you thing we could get this into a release? It would be nice to have this working without having to write a custom property validatorCheers,MikeComments: Thanks for this - I've implemented the fix and the existing unit tests pass. I've also added a new test that should catch this if there are any regressions in the future. Please let me know if you have any other sample email addresses that you'd like me to include in the test suite. I've pushed a new build out to NuGet (5.3). Please give this a try and let me know if it's OK for you. [Less]
Posted about 11 years ago by Jeremy Skinner
Fix issue with email validation
Posted about 11 years ago by itsmemikejames
Hi,It appears the regex you are using doesn't cater for domains such as .co.uk i.e.a user enters __incorrectly__ [email protected] it should be [email protected] my demo on debuggex:https://www.debuggex.com/r/2M165eW57qhx9f_FOnce its ... [More] a validated bug, how soon do you thing we could get this into a release? It would be nice to have this working without having to write a custom property validatorCheers,MikeComments: Hey, A colleague of mine was able to get it working for this scenario. However I would like to ensure its working for other cases: https://www.debuggex.com/r/yIpXwOvrhadlf7X_ Cheers, Mike [Less]
Posted about 11 years ago by itsmemikejames
Hi,It appears the regex you are using doesn't cater for domains such as .co.uk i.e.a user enters __incorrectly__ [email protected] it should be [email protected] my demo on debuggex:https://www.debuggex.com/r/2M165eW57qhx9f_FOnce its ... [More] a validated bug, how soon do you thing we could get this into a release? It would be nice to have this working without having to write a custom property validatorCheers,Mike [Less]