mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 05:30:18 -03:30
Add CI Checks for syntactically valid OpenAPI Specification (#16266)
This commit is contained in:
committed by
GitHub
parent
6f0cfb5ace
commit
1f18396438
4
Makefile
4
Makefile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user