Skip to content
Permalink
main
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
# 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)
.PHONY: $(SCHEMAS)
$(SCHEMAS):
$(AJV) test -s $@/$@.schema.json -d "$@/test/invalid-*.json" --invalid ; \
$(AJV) test -s $@/$@.schema.json -d "$@/test/valid-*.json" --valid ; \