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
We need to let errors pass through on some of the relationships.
Right now the relationships get skipped when there's an error upstream, but the relationship may make the input still valid even if there's an error.
This illustrates it. Right now this doesn't throw, but it should because c is not present:
it('should throw because it\'s missing an attribute',function(done){varschema=Rube({a: Rube(String),b: Rube(String),c: Rube(String)}).or('a','b');schema.only('c')({},function(err,v){assert(err);done();});})
The text was updated successfully, but these errors were encountered:
We need to let errors pass through on some of the relationships.
Right now the relationships get skipped when there's an error upstream, but the relationship may make the input still valid even if there's an error.
This illustrates it. Right now this doesn't throw, but it should because
c
is not present:The text was updated successfully, but these errors were encountered: