Knockout Mapping Validation
I'm trying to attach validation to a mapped view. I'm using Knockout Mapping and Validation plugins. Pseudo-models: Person { int Id; string Name; Book[] Books; } Book { int Id; string Name; } Javascript: function viewModel() { var self = this; self.persons = ko.observableArray(); // persons are retrieved via AJAX... ko.mapping.fromJS(persons, {}, self.persons); } jQuery(function( $ ) { ko.applyBindings(new viewModel()); }); How can I extend persons observableArray to set validation rules and message? I need to validate both persons and books sub-array properties. I've found only examples that