Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested validations: automatic validation of attributes of Backbone.Model type #36

Open
Lobon18 opened this issue Mar 3, 2013 · 0 comments

Comments

@Lobon18
Copy link

Lobon18 commented Mar 3, 2013

Hi!!

We are implementing a project with diferent models which has "singular" attributes (String, Integer, etc.) and nested Models/Collections too.

Is there any mechanism (recursive mechanism, for example) that can validate us a Model instance with its validation rules for simple types (String, Number, etc.) and, if an
attribute is of type Backbone.Model or Backbone.Collection, then it's validated again (recursivity is on)?

So, each validation rules are in its right place: each Model or each Collection has its own rules.

Thanks in advance!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant