ericmbarnard/Knockout-Validation — Issue #12: Validating hierarchical view models
Author: michalporeba
Created: 2012-01-28 18:21:25+00:00
State: open

Hi Eric, I thought I will discuss few things before I send you any pull requests.

I have currently changed implementation of `ko.validation.group()` to make it process complex hierarchical objects and view models. Currently it traverses objects tree checking each property and each array member and works fine but I was thinking... will it break anything in other people's use cases?

At the moment it checks either an array or direct properties of the view model. I thought that is not enough as when you attempt to validate the whole view model you really think about the whole structure rather than the outer layer so I would be happy to simply replace the group function implementation, but with that there maybe a small performance hit so for some people it may be a big deal.

Are you using validation with KoGrid? There I suppose with thousands of objects it could be significant