vizman
v1.7.3
Published
Vizia Manifest Validator. Validate 1 or more Vizia bundle manifests
Downloads
3
Readme
vizman - Vizia Manifest Validator
Validate 1 or more json files against the Vizia bundle manifest schema
returns exit code of 1 if any of the passed json files fail and prints errors to stderr
Usage
CLI
Validate manifest(s)
npx vizman [jsonFile1] [jsonFile2] ...
Validate all manifests under a directory
find [dir] -name "*.json" -exec realpath {} \; | xargs vizman
From stdin
cat manifest.json | vizman
JavaScript
const validateManifest = require('vizman/lib/validate');
const manifest = require('manifest.json');
const result = validateManifest(manifest);
// {result: true, errors: []}
Relation to schemacrat
Schemacrat is a generic json schema validator.
Vizman is a thin wrapper around Schemacrat which provides a neatly packaged set of Vizia specific schemas for Schemacrat to validate against.