Comparing version 0.1.9 to 0.1.10
{ | ||
"name": "scheming", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"main": "dest/Scheming.js", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -379,3 +379,3 @@ (function() { | ||
Schema.validate = function(instance) { | ||
var childErrors, e, err, errors, i, k, key, member, pushError, required, type, v, val, validate, validator, value, _i, _j, _len, _len1; | ||
var childErrors, e, err, errors, i, k, key, member, pushError, required, requiredMessage, type, v, val, validate, validator, value, _i, _j, _len, _len1; | ||
errors = {}; | ||
@@ -407,3 +407,4 @@ if (instance._validating) { | ||
if (required && (val == null)) { | ||
pushError(key, "Field is required."); | ||
requiredMessage = _.isString(required) ? required : "Field is required."; | ||
pushError(key, requiredMessage); | ||
} | ||
@@ -410,0 +411,0 @@ if (val != null) { |
{ | ||
"name": "scheming", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"main": "./dest/Scheming.js", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/autoric/scheming", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
463568
2292