Comparing version 1.1.2 to 1.2.0
@@ -18,3 +18,3 @@ { | ||
"files": ["./src/zSchema.js", "LICENSE"], | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"dependencies": { | ||
@@ -21,0 +21,0 @@ "q": ">= 0.9.6" |
@@ -104,2 +104,13 @@ z-schema validator | ||
}); | ||
``` | ||
* noZeroLengthStrings: ```true/false``` | ||
if noZeroLengthStrings are turned on, all defnitions of type ```string``` will assume minLength for this type is 1, | ||
so you can avoid having empty strings in your objects instead of null | ||
```javascript | ||
var validator = new zSchema({ | ||
noZeroLengthStrings: true | ||
}); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5294
115