From b615bfa9e2b3e5ec10ad855a394c11d2d40bb381 Mon Sep 17 00:00:00 2001 From: crosstyan Date: Tue, 8 Jul 2025 11:52:35 +0800 Subject: [PATCH] Update enum metadata in schema.md to use descriptive string keys instead of numeric values for improved clarity and usability in the WH Telemetry Protocol documentation. --- schema.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.md b/schema.md index 38050cc..2254975 100644 --- a/schema.md +++ b/schema.md @@ -235,7 +235,7 @@ type UserData = Record { "id": "example_enum", "value": 1, // interpreted as "good" - "metadata": { "data_type": "enum:this", "enum": { "1": "good", "2": "moderate", "3": "bad" } } + "metadata": { "data_type": "enum:this", "enum": { "good": 1, "moderate": 2, "bad": 3 } } } ```