Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit fdc23eb

Browse files
committed
Remove underscore check
1 parent cd37438 commit fdc23eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ var validate = exports._validate = function(/*Any*/instance,/*Object*/schema,/*B
187187
}
188188

189189
for(var i in objTypeDef){
190-
if(objTypeDef.hasOwnProperty(i) && !(i.charAt(0) == '_' && i.charAt(1) == '_')){
190+
if(objTypeDef.hasOwnProperty(i)){
191191
var value = instance[i];
192192
var propDef = objTypeDef[i];
193193
// set default

0 commit comments

Comments
 (0)