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.

This commit is contained in:
2025-07-08 11:52:35 +08:00
parent 6498395ed8
commit b615bfa9e2

View File

@ -235,7 +235,7 @@ type UserData = Record<string, any>
{
"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 } }
}
```