validate.js icon indicating copy to clipboard operation
validate.js copied to clipboard

add attribute label support

Open uiii opened this issue 8 years ago • 6 comments

Hi, I've implemented support for attribute label, which when used is printed in the error messages instead of "pretiffied" attribute name (see https://github.com/ansman/validate.js/issues/69#issuecomment-194771733). I have updated tests, but maybe didn't cover the code completely. I didn't updated doc. Finally I've used another validation library, so I don't rely on this anymore, but I don't want throw away the work. If you found my implementation useful, here it is, if not, just delete the PR.

uiii avatar Mar 16 '16 21:03 uiii

Thanks, I'll take a look at this later.

ansman avatar Mar 21 '16 07:03 ansman

This seems to be an improvement on overriding the prettify function in the sense that it's scoped to the options argument of a validate() call, but it's limited to matching field names exactly to make replacements.

michaek avatar Jun 13 '16 14:06 michaek

please resolve this conflict. I need this feature

thg303 avatar Nov 06 '16 09:11 thg303

@ansman any update on this? Would be a nice feature

orditeck avatar Nov 15 '16 21:11 orditeck

@uiii Whst is the status?

mindaugasnakrosis avatar Aug 18 '20 13:08 mindaugasnakrosis

@mindaugasnakrosis This is quite old, read the description, I think it explains it enough. I don't use this library anymore.

uiii avatar Aug 18 '20 16:08 uiii