Add CI Checks for syntactically valid OpenAPI Specification (#16266)

This commit is contained in:
Rodrigo Toshiaki Horie
2026-02-10 19:13:34 -03:00
committed by GitHub
parent 6f0cfb5ace
commit 1f18396438
3 changed files with 40 additions and 5 deletions

View File

@@ -579,6 +579,10 @@ detect-schema-change: genschema
# diff exits with 1 when files differ - capture but don't fail
-diff -u -b reference-schema.json schema.json
validate-openapi-schema: genschema
@echo "Validating OpenAPI schema from schema.json..."
@python3 -c "from openapi_spec_validator import validate; import json; spec = json.load(open('schema.json')); validate(spec); print('✓ OpenAPI Schema is valid!')"
docker-compose-clean: awx/projects
$(DOCKER_COMPOSE) -f tools/docker-compose/_sources/docker-compose.yml rm -sf