I accidentally discovered this trying to create a PropertyNameResolver, but FluentValidation already check for System.ComponentModel.DisplayNameAttribute in properties and use that in error messages.
The documentation has no mention of this anywhere.
I think this should be documented as one of the simplest ways of customizing the PropertyName in error messages.
The documentation has no mention of this anywhere.
I think this should be documented as one of the simplest ways of customizing the PropertyName in error messages.