You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A schema-attribute named email will error if there is a rule named email
schemator.defineRule('email',function(x){returnnull;});varschema=schemator.defineSchema('mySchema',{//this schema errors because field "email" matches a rule nameemail: {email: true}});
This prevents from using on data structures with attributes such as "type", "max", or any custom rule.
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
The text was updated successfully, but these errors were encountered: