view test.sh @ 63:8f3ba64ec888 jsonrpc

Start reworking request-response into json-rpc format
author Chris Cannam
date Wed, 05 Oct 2016 09:19:05 +0100
parents a5eb5ef2e92d
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