vizman

1.7.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i vizman

Weekly Downloads

8

Version

1.7.3

License

ISC

Unpacked Size

16.9 kB

Total Files

28

Last publish

Collaborators

  • antibaconmachine