view 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
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