Update schema.md to correct data type definitions; change data_type to DataTypeLiteral for clarity and adjust code block language from TypeScript to Haskell for improved accuracy in the WH Telemetry Protocol documentation.

This commit is contained in:
2025-07-08 11:57:36 +08:00
parent d3b6425a66
commit 4756f19073

View File

@ -283,17 +283,17 @@ field 级字段元数据, 用于描述 `value` 的类型, 采样间隔, 单位,
`data_type` 用于描述 `value` 的类型, 其类型为 `DataType`
```typescript
```haskell
type DataType =
| ScalarType
| ArrayType ScalarType
| IrregularType ScalarType
```
所有合法的 `data_type` 如下:
所有合法的 `data_type` 的值如下:
```typescript
type DataType =
type DataTypeLiteral =
| "string"
| "number"
| "boolean"