Open mickmcgrath13 opened 8 years ago
I have a branch that should address this: https://github.com/canjs/can-validate/tree/issue-20 The relevant code is here: https://github.com/canjs/can-validate/blob/issue-20/can-validate/shims/validatejs.shim.js#L34 ...and there are tests: https://github.com/canjs/can-validate/blob/issue-20/can-validate/shims/validatejs.test.js
However, I haven't been able to test the tests because my local npm install doesn't work... I'll create another issue for that...
The validatejs docs say:
However, this doesn't work with can-validate because of the use of
validatejs.single
and the manual prepending of the key.Validate.js's single method forces the
fullMessages
to be false...which means that it isn't taking advantage of its internal name prettifying.
Why not just use a non
validatejs.single
method and let validatejs do its own internal pretty naming and allow users to take advantage of the "^" functionality?