This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 04df20a4f7e Increase readability of schema validation errors (#72905)
04df20a4f7e is described below
commit 04df20a4f7e2694df85d9a3e84d94d56a8ec36de
Author: Przemysław Mirowski <[email protected]>
AuthorDate: Fri Sep 11 02:32:00 2026 +0200
Increase readability of schema validation errors (#72905)
---
scripts/ci/prek/lint_json_schema.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/ci/prek/lint_json_schema.py
b/scripts/ci/prek/lint_json_schema.py
index ab6dc8bff37..8f735a0fec7 100755
--- a/scripts/ci/prek/lint_json_schema.py
+++ b/scripts/ci/prek/lint_json_schema.py
@@ -136,7 +136,7 @@ def _process_files(validator, file_paths: list[str]):
print("Processing file: ", input_path)
instance = load_file(input_path)
for error in validator.iter_errors(instance):
- print(error)
+ print(f"{error.message} of {'.'.join(error.path)!r} object")
exit_code = 1
return exit_code