|
@@ -2,11 +2,11 @@
|
|
|
|
|
|
|
|
Repository ini berisi contoh-contoh penggunaan fungsi `ACE_LIB.getConfig()` untuk parsing YAML nested dengan berbagai skenario.
|
|
Repository ini berisi contoh-contoh penggunaan fungsi `ACE_LIB.getConfig()` untuk parsing YAML nested dengan berbagai skenario.
|
|
|
|
|
|
|
|
-## 📋 Overview
|
|
|
|
|
|
|
+## Overview
|
|
|
|
|
|
|
|
Fungsi `getConfig()` adalah YAML parser yang dapat membaca file konfigurasi dengan struktur nested (object dan array) dan mengembalikan JSON yang dapat langsung diakses di ESQL.
|
|
Fungsi `getConfig()` adalah YAML parser yang dapat membaca file konfigurasi dengan struktur nested (object dan array) dan mengembalikan JSON yang dapat langsung diakses di ESQL.
|
|
|
|
|
|
|
|
-## 🧪 Test Scenarios
|
|
|
|
|
|
|
+## Test Scenarios
|
|
|
|
|
|
|
|
Repository ini menyediakan **5 skenario testing** yang mencakup berbagai use case:
|
|
Repository ini menyediakan **5 skenario testing** yang mencakup berbagai use case:
|
|
|
|
|
|
|
@@ -18,7 +18,7 @@ Repository ini menyediakan **5 skenario testing** yang mencakup berbagai use cas
|
|
|
| [CONFIG4.yaml](configs/CONFIG4.yaml) | **Corner Case: Deep Nesting** | Deep nesting (5+ levels) dan complex nested structures |
|
|
| [CONFIG4.yaml](configs/CONFIG4.yaml) | **Corner Case: Deep Nesting** | Deep nesting (5+ levels) dan complex nested structures |
|
|
|
| [CONFIG5.yaml](configs/CONFIG5.yaml) | **Simple Key-Value** | Practical real-world config dengan arrays dan nested objects |
|
|
| [CONFIG5.yaml](configs/CONFIG5.yaml) | **Simple Key-Value** | Practical real-world config dengan arrays dan nested objects |
|
|
|
|
|
|
|
|
-## 📂 Repository Structure
|
|
|
|
|
|
|
+## Repository Structure
|
|
|
|
|
|
|
|
```
|
|
```
|
|
|
ACE_LIB.getConfig-moreExample/
|
|
ACE_LIB.getConfig-moreExample/
|
|
@@ -43,7 +43,7 @@ ACE_LIB.getConfig-moreExample/
|
|
|
└── config5-scenario.md
|
|
└── config5-scenario.md
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-## 📖 Detailed Documentation
|
|
|
|
|
|
|
+## Detailed Documentation
|
|
|
|
|
|
|
|
Untuk penjelasan lengkap setiap skenario, lihat dokumentasi berikut:
|
|
Untuk penjelasan lengkap setiap skenario, lihat dokumentasi berikut:
|
|
|
|
|
|
|
@@ -53,7 +53,7 @@ Untuk penjelasan lengkap setiap skenario, lihat dokumentasi berikut:
|
|
|
- [Config 4: Deep Nesting & Complex Structures](docs/config4-scenario.md)
|
|
- [Config 4: Deep Nesting & Complex Structures](docs/config4-scenario.md)
|
|
|
- [Config 5: Simple & Practical Config](docs/config5-scenario.md)
|
|
- [Config 5: Simple & Practical Config](docs/config5-scenario.md)
|
|
|
|
|
|
|
|
-## 🚀 Quick Start
|
|
|
|
|
|
|
+## Quick Start
|
|
|
|
|
|
|
|
### Cara Menggunakan Test Files
|
|
### Cara Menggunakan Test Files
|
|
|
|
|
|
|
@@ -77,7 +77,7 @@ IF success THEN
|
|
|
END IF;
|
|
END IF;
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-## ✅ Test Coverage
|
|
|
|
|
|
|
+## Test Coverage
|
|
|
|
|
|
|
|
| Feature | Config 1 | Config 2 | Config 3 | Config 4 | Config 5 |
|
|
| Feature | Config 1 | Config 2 | Config 3 | Config 4 | Config 5 |
|
|
|
|---------|----------|----------|----------|----------|----------|
|
|
|---------|----------|----------|----------|----------|----------|
|
|
@@ -91,15 +91,10 @@ END IF;
|
|
|
| Deep Nesting (5+ levels) | - | - | - | ✅ | - |
|
|
| Deep Nesting (5+ levels) | - | - | - | ✅ | - |
|
|
|
| Special Characters | - | - | ✅ | - | - |
|
|
| Special Characters | - | - | ✅ | - | - |
|
|
|
|
|
|
|
|
-## 📝 Notes
|
|
|
|
|
|
|
+## Notes
|
|
|
|
|
|
|
|
- Semua config menggunakan **indentasi 2 spasi** per level
|
|
- Semua config menggunakan **indentasi 2 spasi** per level
|
|
|
- Parser support struktur nested unlimited depth (limited by memory)
|
|
- Parser support struktur nested unlimited depth (limited by memory)
|
|
|
- Semua values di-parse sebagai **string** (tidak ada type conversion)
|
|
- Semua values di-parse sebagai **string** (tidak ada type conversion)
|
|
|
- Empty values (`key:`) di-parse menjadi empty string `""`
|
|
- Empty values (`key:`) di-parse menjadi empty string `""`
|
|
|
|
|
|
|
|
----
|
|
|
|
|
-
|
|
|
|
|
-**Version:** 1.0.0
|
|
|
|
|
-**Last Updated:** October 2026
|
|
|
|
|
-**Maintainer:** IBM ACE Middleware Team
|
|
|