Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Commit

Permalink
move examples to examples/
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter committed Apr 23, 2021
1 parent 0df519c commit 44c6953
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ compile::

check-formatting::
@echo "Checking JSON formatting..."
@for file in $(SCHEMATA) Lookup-tables/*.json example-*.json; do \
@for file in $(SCHEMATA) Lookup-tables/*.json examples/*.json; do \
jq . <$$file >$$file.tmp; \
if ! cmp $$file $$file.tmp; then \
echo "Please reformat $$file"; \
Expand All @@ -27,12 +27,12 @@ check-formatting::
done

validate-examples::
-$(AJV) validate -r "DGC.*.schema.json" -s "DGC.schema.json" -d "example-*.json"
-$(AJV) validate -r "DGC.*.schema.json" -s "DGC.schema.json" -d "examples/*.json"

$(MERGED): $(SCHEMATA)
python3 merge.py $(SCHEMATA) | jq . > $@
-$(AJV) compile -s $@
-$(AJV) validate -s $@ -d "example-*.json"
-$(AJV) validate -s $@ -d "examples/*.json"

reformat::
for file in *.json Lookup-tables/*.json; do jq . <$$file >$$file.tmp && mv $$file.tmp $$file; done
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 44c6953

Please sign in to comment.