Closed willrstern closed 9 years ago
Yeah, I had been thinking about simply deleting that line of code. And the tests pass without it, so I'll do it shortly.
Oh nice. I was gonna submit a pr with it out (I noticed the passing tests as well), but wasn't sure why it was in place.
Thanks again!
A schema-attribute named
email
will error if there is a rule namedemail
This prevents from using on data structures with attributes such as "type", "max", or any custom rule.
It's happening here... https://github.com/js-data/js-data-schema/blob/master/lib/schema.js#L225