roughiain · @roughiain
157 followers · 1534 posts · Server hachyderm.io

Anyone have a working example of fluent validation on Dictionary?

Basic Gist of the setup

gist.github.com/roughiain/38bb

#dotnet #csharp #FluentValidation

Last updated 2 years ago

New Coding Shorts Video: Minimal API Endpoint Filters for Model Validation

youtu.be/_S-r6SxLGn4

#aspnetcore #MinimalApi #FluentValidation

Last updated 2 years ago

Ben · @o9d
72 followers · 10 posts · Server fosstodon.org

Any way to include the parent object name e.g. parent.child.name in a 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.

#FluentValidation

Last updated 3 years ago

jonstodle · @jonstodle
79 followers · 244 posts · Server snabelen.no

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

Last updated 3 years ago