OpenMetadata/scripts/validate_yaml.py
Pere Miquel Brull dbe8d5ed00
CI - YAML formatting issue (#23047)
* CI

* CI
2025-08-21 18:05:15 +02:00

13 lines
216 B
Python

import os
import sys
import yaml
path = sys.argv[1]
if os.path.islink(path):
exit()
with open(path, "r") as f:
# safe_load_all works for both single and multi-document YAML
list(yaml.safe_load_all(f))