0.2.1 • Published 10 months ago

@fidian/tv4-cli v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

TV4-CLI

Command-line interface for tv4, a JSON-Schema v4 validator.

The easiest way to run this is using npx.

npx tv4-cli --help

npx tv4-cli --schema=schema.json data.json

# Files and schemas can be local files or URLs.
npx tv4-cli --schema=http://example.com/schema.json http://example.net/data.json

# YAML is supported, and multiple data files can be checked at once.
npx tv4-cli --schema=schema.yaml records/*.yaml

# Can fail validation if extra properties are found that are not described in
# the schema.
npx tv4-cli --ban --schema=schema.yaml data.json

# Debugging information can be shown
DEBUG=tv4-cli npx tv4-cli --schema=schema.json data-file.json

# Return codes indicate types of failures
if ! npx tv4-cli --schema=schema.json data.json; then
    echo "Validation failed!"
fi
0.2.1

10 months ago

0.2.0

10 months ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago