Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
rcl.hget("wf:"+wfId+":schemas", sigInfo.schema, function(err, sigSchema) { // retrieve schema
if (err) { return cb(err, false); }
ZSchema.validate(sig, JSON.parse(sigSchema), function(err, report) {
if (err) { return cb(err, false); }
//onsole.log("REPORT");
//onsole.log(sig);
//onsole.log(sigSchema);
//onsole.log(report);
cb(null, true);
});
});
});
validateSchema: function (injected, schema) {
return ZSchema.validate(injected, schema)
},
getLastError: function () {