Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.08 KB

File metadata and controls

51 lines (32 loc) · 1.08 KB

validate-collections-yaml

This script validates YAML collection files against a predefined schema to ensure their integrity.

Prerequisites

  • Python 3.x installed on your system.

Running in a Virtual Environment (Recommended)

Using a virtual environment isolates dependencies and prevents conflicts.

  1. Create a virtual environment:

    python3 -m venv ./scripts/validate-collections-yaml/.venv
  2. Activate the virtual environment:

    source ./scripts/validate-collections-yaml/.venv/bin/activate
  3. Install dependencies:

    python3 -m pip install -r ./scripts/validate-collections-yaml/requirements.txt
  4. Run the script:

    python3 ./scripts/validate-collections-yaml

Running Globally

Running the script globally is less recommended due to potential dependency conflicts.

  1. Install dependencies:

    python3 -m pip install -r ./scripts/validate-collections-yaml/requirements.txt
  2. Run the script:

    python3 ./scripts/validate-collections-yaml