From 4756f190734703ef158f9acc01008fb94be900d3 Mon Sep 17 00:00:00 2001 From: crosstyan Date: Tue, 8 Jul 2025 11:57:36 +0800 Subject: [PATCH] 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. --- schema.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/schema.md b/schema.md index 0c45d99..59556df 100644 --- a/schema.md +++ b/schema.md @@ -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"