This script validates YAML collection files against a predefined schema to ensure their integrity.
- Python 3.x installed on your system.
Using a virtual environment isolates dependencies and prevents conflicts.
-
Create a virtual environment:
python3 -m venv ./scripts/validate-collections-yaml/.venv
-
Activate the virtual environment:
source ./scripts/validate-collections-yaml/.venv/bin/activate
-
Install dependencies:
python3 -m pip install -r ./scripts/validate-collections-yaml/requirements.txt
-
Run the script:
python3 ./scripts/validate-collections-yaml
Running the script globally is less recommended due to potential dependency conflicts.
-
Install dependencies:
python3 -m pip install -r ./scripts/validate-collections-yaml/requirements.txt
-
Run the script:
python3 ./scripts/validate-collections-yaml