From 51e4bae990941f18515c37ae2bae515f67351b75 Mon Sep 17 00:00:00 2001 From: Mihaela Mihaljevic Date: Thu, 16 Oct 2025 20:39:10 +0200 Subject: [PATCH] added description --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) 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: