-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add wait system, Improve json-schema validation
- Added json-schema-ref-parser as Util.dereference() which returns a promise and is used in conjunction with Util.validate(). This allows for more maintainable json-schema definitions, reducing duplication. See: http://json-schema.org/example2.html - Added wait system. There is now an optional, user-defined "wait" counter to allow for additional interator flow control A wait represents a single outstanding asyncronous process. Waits can be used by the developer inside the config.tasks file where desired to ensure longer-running processes such as Util.validate() are able to complete. - Modified how Util.log() behaves. Previously just a wrapper for console.log(), it now suppresses output if config.quiet is set to true. - Changed Util.validat() to return a promise. This clarified the behavior, such failed validations return a rejection with the specific reason. - Bumped AJV, commander versions.
- Loading branch information
dsquier
committed
Jun 23, 2017
1 parent
90dd339
commit 3ee330f
Showing
3 changed files
with
97 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
"json-schema", | ||
"schema validator" | ||
], | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"homepage": "http://github.com/dsquier/couchit", | ||
"author": "David Squier ([email protected])", | ||
"main": "./lib/couchit", | ||
|
@@ -33,9 +33,10 @@ | |
"lib": "./lib" | ||
}, | ||
"dependencies": { | ||
"ajv": "^5.1.5", | ||
"ajv": "^5.2.0", | ||
"async": "^2.4.1", | ||
"commander": "^2.9.0", | ||
"commander": "^2.10.0", | ||
"json-schema-ref-parser": "^3.1.2", | ||
"nano": "^6.3.0", | ||
"node-object-hash": "1.2.0" | ||
}, | ||
|