Open wmrutten opened 8 years ago
Yes this really needs to be done, and a thorough going through all the error messages to make them more user friendly, not just developer friendly. (Such as using the display property from the element definition instead of the path/slice name in the messages) and less intimidating words than instance, cardinality, etc
This issue is about dotnet attribute validation, not the profile validator, so I removed that label
So, the ValidationResult
@wmrutten talks about is this one from the .NET framework: https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.validationresult?view=net-5.0
We have done this right? @ewoutkramer
@brianpos and I had a proposal, but I am not sure if it went anywhere.
ValidationResult currently only exposes an ErrorMessage property. This prevents clients from localizing/formatting the error message. Proposal:
Advanced:
Maybe similar implementation to .NET exception classes?