Anyone have a working example of fluent validation on Dictionary?
Basic Gist of the setup
https://gist.github.com/roughiain/38bb06ec8bd84390b8d9c358de743878
#dotnet #csharp #FluentValidation
New Coding Shorts Video: Minimal API Endpoint Filters for Model Validation #aspnetcore #minimalapi #fluentvalidation
#aspnetcore #MinimalApi #FluentValidation
Any way to include the parent object name e.g. http://parent.child.name in a #FluentValidation generated error message? Only "name" in the above example is included in the PropertyName placeholder but I can see the full path in the ValidationFailure.PropertyName.
This is not very helpful. When printing the assertion, the actual value’s ToString() evaluates to the correct value, and so it looks correct in the test output. #dotnet #FluentValidation