annotate 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
rev   line source
Chris@32 1 #!/bin/bash
Chris@32 2
Chris@32 3 set -eu
Chris@32 4
Chris@32 5 for ex in examples/*.json ; do
Chris@32 6 echo "Checking $ex..." 1>&2
Chris@32 7 jsonschema -i "$ex" schema/$(basename "$ex")
Chris@32 8 done
Chris@32 9
Chris@40 10 for s in schema/*.json ; do
Chris@40 11 if [ ! -f examples/$(basename "$s") ]; then
Chris@40 12 echo "WARNING: No example file for schema $s"
Chris@40 13 fi
Chris@40 14 done
Chris@40 15