I am trying to use knockout validation lib to validate an array of objects. It is not straightforward to me how to form a validation group for an array of observables. The o
I have to low reputation to comment. So here comes another answer. The answer with provided fiddles by antishok seams to not be working anymore. (The link to knockout.js was broken, but even after fixing that and adding a working link to knockout 3.0 it still was not working)
I added ko.computed around the ko.validation.group() and got it working that way.
self.errors =
ko.computed(function() {
return ko.validation.group(self.notes(), { deep: true })});
http://jsfiddle.net/bezFR/17/ (Updated)
I'm guessing there is a better way to do this, but for now it solves my problem, and i'm looking forward to be corrected/seeing a better solution :)