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:
@ -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 } }
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user