z-schema 4.2.4 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/ZSchema-browser-min.js +1 -1
- package/dist/ZSchema-browser-min.js.map +1 -1
- package/dist/ZSchema-browser-test.js +665 -3677
- package/dist/ZSchema-browser.js +488 -3454
- package/package.json +3 -3
- package/src/ZSchema.js +2 -2
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "z-schema",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"engines": {
|
|
5
|
-
"node": ">=
|
|
5
|
+
"node": ">=8.0.0"
|
|
6
6
|
},
|
|
7
7
|
"description": "JSON schema validator",
|
|
8
8
|
"homepage": "https://github.com/zaggino/z-schema",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"lodash.get": "^4.4.2",
|
|
70
70
|
"lodash.isequal": "^4.5.0",
|
|
71
|
-
"validator": "^
|
|
71
|
+
"validator": "^12.0.0"
|
|
72
72
|
},
|
|
73
73
|
"optionalDependencies": {
|
|
74
74
|
"commander": "^2.7.1"
|
package/src/ZSchema.js
CHANGED
|
@@ -52,8 +52,8 @@ var defaultOptions = {
|
|
|
52
52
|
strictMode: false,
|
|
53
53
|
// report error paths as an array of path segments to get to the offending node
|
|
54
54
|
reportPathAsArray: false,
|
|
55
|
-
//
|
|
56
|
-
breakOnFirstError:
|
|
55
|
+
// stop validation as soon as an error is found
|
|
56
|
+
breakOnFirstError: false,
|
|
57
57
|
// check if schema follows best practices and common sense
|
|
58
58
|
pedanticCheck: false,
|
|
59
59
|
// ignore unknown formats (do not report them as an error)
|