view test.sh @ 60:8f72b4c0c71c

List response is an object, with plugins field; add finish request schema and example
author Chris Cannam
date Fri, 23 Sep 2016 14:19:32 +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