Mercurial > hg > piper
view test.sh @ 146:b521ca16c51d
Use anyOf to supply the content object type
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Tue, 27 Sep 2016 11:19:19 +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