Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
11 lines (9 sloc) 464 Bytes
# Run ajv via a Docker container and bind mount the source files
WORKDIR := /mnt/json-schemas
AJV := docker-compose run --rm -v $${PWD}:$(WORKDIR) -w $(WORKDIR) ajv-cli ajv
# Each schema has its own top-level directory
SCHEMAS := $(shell find . -depth 1 ! -name ".*" -type d | sort)
$(AJV) test -s $@/$@.schema.json -d "$@/test/invalid-*.json" --invalid ; \
$(AJV) test -s $@/$@.schema.json -d "$@/test/valid-*.json" --valid ; \