tv4-cmd

Command tool for JSON Schema validation.

Usage no npm install needed!

<script type="module">
  import tv4Cmd from 'https://cdn.skypack.dev/tv4-cmd';
</script>

README

Command Tool for Tiny Validator (tv4)

Installation: npm install tv4-cmd -g

Run the command with a schema file and a JSON file. Nothing returns if it is valid. There is a verbose option to receive more information about the validation.

Usage: tv4 <options>
Where options are:
  -s, --schema <file>  Required
  -j, --json <file>
  -v, --verbose
  -b, --ban  Ban unknown properties

Read more about the Tiny Validator at geraintluff/tv4.