annotate test.sh @ 147:30bd89a8cbeb

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 <c.cannam@qmul.ac.uk>
date Tue, 27 Sep 2016 15:03:29 +0100
parents de53fcc487c4
children 4e9ea8f177b6
rev   line source
c@103 1 #!/bin/bash
c@103 2
c@103 3 set -eu
c@103 4
c@103 5 for ex in examples/*.json ; do
c@103 6 echo "Checking $ex..." 1>&2
c@103 7 jsonschema -i "$ex" schema/$(basename "$ex")
c@103 8 done
c@103 9
c@111 10 for s in schema/*.json ; do
c@111 11 if [ ! -f examples/$(basename "$s") ]; then
c@111 12 echo "WARNING: No example file for schema $s"
c@111 13 fi
c@111 14 done
c@111 15