1.7.3 • Published 7 years ago

vizman v1.7.3

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

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.

1.7.3

7 years ago

1.7.2

7 years ago

1.7.1

7 years ago

1.7.0

7 years ago

1.6.0

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago