I am using Breeze.js data-z-validate attribute in order to get "out of the box" validation messages to display in my angular app.
The Breeze metadata is coming from EF - an example model property looks like this:
[MaxLength(100),Required,Display(Name = "My Custom Field Name")]
public string Name { get; set; }
The Breeze validation message always comes back with the real name of the property, not the displayname. For eg. "name is required".
I want the breeze validation message to be displayed using the display name attribute so it will be:
"My Custom Field Name is required".
I have also tried using the DisplayName attribute:
[DisplayName("My Custom Attribute")]
but I get the same behaviour regardless.
Am I missing something or does z-validate not allow for the display/displayname attribute? What is the best / recommended way to get a 'friendly' validation message back?