annotate test.sh @ 62:a444a851bd67

Instead of using separate values and b64values entries, allow numeric arrays to be replaced by b64 variants wherever they appear (discriminating by type). Also rename values to featureValues in feature, as values turns out to be a hazardous name in a JS context
author Chris Cannam
date Tue, 27 Sep 2016 15:03:29 +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