ericmbarnard/Knockout-Validation — pull request #239 by carlschroedl (2013-03-04 05:28:14+00:00)
Title: Add a rule-group id property to rule objects

This pull request permits a rule-group id to be added to rule objects. No other modifications to the rule object are made by this PR so consequently it breaks zero tests. The new rule-group id property allows the identification of groups of rules; if two rule objects have an identical rule-group id, then they are in the same rule-group. If two objects have differing rule-group ids then they are not in the same rule-group.

If we establish unique rule-groups in this way then all of the validation rules pertaining to a rule-group can be added or removed consistently using a single method call. This is precisely what my ValidatedViewModel micro-library aims to do. A summary of the library: if you have numerous instances of a view model on a page and you have different complex validation requirements for different instances, you can add and remove those groups of requirements as needed. If you are curious about the features of ValidatedViewModel, please check out the documentation:
https://github.com/carlschroedl/validatedviewmodel/wiki

A summary of this pull request: support the functionality of ValidatedViewModel at no cost.