Closed adarshpastakia closed 8 years ago
I confirm, this currently fails:
let validator = new Validator();
let foo = { foo: "bar" };
let rules = new ValidationRules().ensure("foo").presence(true);
let errors = validator.validateObject(foo, rules);
console.log(errors);
// results in this ValidationError:
{
message: "Null can't be blank",
object: { foo: "bar" },
propertyName: null,
rule: {
name: "presence",
config: true
}
}
https://github.com/aurelia/validatejs/pull/116 implements @adarshpastakia fix for this.
closing- validatejs was dropped in last release
I'm submitting a bug report
Please tell us about your environment:
Node Version: 4.4.5
NPM Version: 3.9.5
JSPM OR Webpack AND Version JSPM 0.16.39
Current behavior:
Expected/desired behavior:
i have created a vaildatemap validation rule which iterates a map and validates each object
unfortunately the
validateObject
keeps failing becausepropertyName
is null.validator.js
line 19