view test.sh @ 40:a5eb5ef2e92d

Process block (input to process call)
author Chris Cannam
date Thu, 17 Mar 2016 14:04:17 +0000
parents 26f7e0bb39d6
children 4e9ea8f177b6
line wrap: on
line source
#!/bin/bash

set -eu

for ex in examples/*.json ; do
    echo "Checking $ex..." 1>&2
    jsonschema -i "$ex" schema/$(basename "$ex")
done

for s in schema/*.json ; do
    if [ ! -f examples/$(basename "$s") ]; then
	echo "WARNING: No example file for schema $s"
    fi
done