Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

z-schema

Package Overview
Dependencies
Maintainers
1
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

z-schema - npm Package Compare versions

Comparing version 1.1.2 to 1.2.0

2

package.json

@@ -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
});
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc