https://github.com/marviq/jsonvalidate
Commandline tool for validating JSON files against JSON-schema, based on tv4 library
https://github.com/marviq/jsonvalidate
Last synced: 3 months ago
JSON representation
Commandline tool for validating JSON files against JSON-schema, based on tv4 library
- Host: GitHub
- URL: https://github.com/marviq/jsonvalidate
- Owner: marviq
- License: other
- Created: 2014-11-20T08:15:37.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-20T09:00:23.000Z (over 10 years ago)
- Last Synced: 2025-03-07T22:02:12.767Z (3 months ago)
- Language: JavaScript
- Size: 234 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
#JSON VALIDATE
This script is used to validate JSON files against one or more JSON-schemas.
(See [json-schema.org](http://json-schema.org/documentation.html))The script has been tested for json-schema draft 3 and 4.
##Installation
Tested on node-0.10.x and node.11.x, requires npm.
$ npm install -g jsonvalidate
This will install the script globally according to your system and you can use it as a standard commandline tool##Usage
$ jsonvalidate
Usage: jsonvalidate [options]
Options:
-f, --file JSON file [-]
-e, --extra extra JSON schema file
-s, --schema JSON schema file
-d, --debug Debug loggingIf no file is provided, the default, '-' is taken, stdin is used as input:
$ cat foo.json | jsonvalidate -s fooschema.json
Extra schemas can be loaded for included schemas:
$ jsonvalidate -f foobar.json -s foo-schema.json -e bar-schema.json