-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (18 loc) · 553 Bytes
/
Makefile
File metadata and controls
24 lines (18 loc) · 553 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY: check schemas openapi examples
SCHEMAS_DIR=schemas
EXAMPLES_DIR=examples
check: schemas openapi examples
@echo "✓ all checks passed (local)"
schemas:
@echo "→ validate schemas (jsonlint only)"; \
for f in $(SCHEMAS_DIR)/*.json; do \
python3 -m json.tool $$f > /dev/null || exit 1; \
done
openapi:
@echo "→ lint OpenAPI (syntax only)"; \
python3 scripts/validate_openapi.py
examples:
@echo "→ validate example JSON syntax"; \
for f in $(EXAMPLES_DIR)/*.json; do \
python3 -m json.tool $$f > /dev/null || exit 1; \
done