Baggz/Amanda — Issue #33: validate option { onlyErrorCallback:true}
Author: Tapsi
Created: 2012-03-04 12:05:01+00:00
State: open

It was very hard to me to find out that the callback will every time called by your library. Often I only need to do some things if the validation fails, else not...

cool would be

amanda.validate( obj, schema, { onlyErrorCallback:true }, function(e){
// do something on error case
});
// do things when validation was successful

BTW: great library :D