Closed cOdeShagHennessy closed 9 years ago
Fixed in commit 0e348adc39c453c381972ee8045088c2c0dd166d with
var validateMethodOptions = function (methodOptions) {
return Joi.validate(
methodOptions,
methodOptionsSchema, {abortEarly: false, allowUnknown: true}, function (err) {
if (err) {
Logger.error('Error: invalidated %j %s', methodOptions, err);
return err;
}
Logger.trace('validated %j', methodOptions);
});
};
When a schema validation error occurs for a generated microlib the error is not properly return. This allows the generated tests to give false positives.