Skip to content
Permalink
68ca19562d
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
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)
.PHONY: $(SCHEMAS)
$(SCHEMAS):
$(AJV) test -s $@/$@.schema.json -d "$@/test/invalid-*.json" --invalid ; \
$(AJV) test -s $@/$@.schema.json -d "$@/test/valid-*.json" --valid ; \