added description

This commit is contained in:
Mihaela Mihaljevic 2025-10-16 20:39:10 +02:00
parent 9747a06804
commit 51e4bae990

View File

@ -2,6 +2,34 @@
A Swift package for merging multiple YAML files from subdirectories into a single combined file.
## 🏗️ Architecture Overview
┌─────────────────────-┐ ┌──────────────────┐ ┌─────────────────────┐
│ Schema YAML Files │───▶ │ YAMLMerger │───▶ │ Combined OpenAPI │
│ (Organized by Type & │ │ (Test Runner) │ │ Specification │
│ Function) │ │ │ │ (CombinedSpec.yaml) │
└─────────────────────-┘ └──────────────────┘ └─────────────────────┘
│
▼
┌─────────────────────┐
│ Manual Copy Step │
│ (Human Action) │
└─────────────────────┘
│
▼
┌─────────────────────┐ ┌──────────────────┐ ┌─────────────────────┐
│ Generated Swift │◀─── │ Swift OpenAPI │◀─── │ SharedApiModels │
│ Client & Server │ │ Generator │ │ openapi.yaml │
│ Code │ │ │ │ │
└─────────────────────┘ └──────────────────┘ └─────────────────────┘
│
▼
┌─────────────────────┐
│ ApiClient & │
│ ApiServer │
│ Packages │
└─────────────────────┘
## How It Works
YAMLMerger recursively scans subdirectories for YAML files and merges them in a predictable order: