Open littleKitchen opened 2 years ago
When I try to do like this :
var result = v.validate(json, MessageSchema,{throwAll:true})
I can get the following result from the console:
If I remove "{throwAll:true}" The ValidatorResult like this:
Please Help
by the way, there is no "valid" property in ValidatorResult, am I missing something in the code?
When I try to do like this :
var result = v.validate(json, MessageSchema,{throwAll:true})
I can get the following result from the console:
If I remove "{throwAll:true}" The ValidatorResult like this:
Please Help
by the way, there is no "valid" property in ValidatorResult, am I missing something in the code?