diff --git a/README.md b/README.md index 3e06a39..276124a 100644 --- a/README.md +++ b/README.md @@ -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: