thedersen/backbone.validation — Issue #19: Best way to validate attributes within an object?
Author: andyuk
Created: 2012-02-02 11:38:09+00:00
State: open

What's the best way to validate attributes within an object?

For example my object is:

{
id: 123,
image: {
name: 'test'
}
}

To validate that my image object has a name, I must use a function. Then I lose the built-in validators. Could we have nested validators?

Nice project by the way - it's been very useful on our project. :)

Andy