KValidation icon indicating copy to clipboard operation
KValidation copied to clipboard

Enhancement: Add propertyName to ValidationError

Open RikuVan opened this issue 5 years ago • 2 comments

Presently the property name is added to the debugMessage. It would be useful to have the propertyName in the ValidationError. I am sending a list of errors to a client that maps them to inputs with the same name. I need to slice the property name out of the message, e.g. "planName: name must be at least 3 characters long".

RikuVan avatar Aug 22 '19 12:08 RikuVan