Mercurial > hg > piper
view json/check.sh @ 214:970fd3bd8c92
Ah, the programParameters can't be static data because parameter values in general (e.g. the default configuration) aren't known until construction - and we can't query the program-parameter relationship from e.g. static Vamp plugin data either. Move to the load response structure.
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 07 Apr 2020 15:40:38 +0100 |
parents | 549d3d44d729 |
children |
line wrap: on
line source
#!/bin/bash mydir=$(dirname "$0") set -eu echo for ex in "$mydir"/examples/*.json ; do echo "Checking $ex..." 1>&2 jsonschema -i "$ex" "$mydir"/schema/$(basename "$ex" | sed 's/-[^.]*//') done for s in "$mydir"/schema/*.json ; do if [ ! -f "$mydir"/examples/$(basename "$s") ]; then if ! ls -1 "$mydir"/examples/$(basename "$s" .json)-*.json >/dev/null 2>&1; then echo "WARNING: No example file for schema $s" fi fi done echo OK