难度: 初级 | 时间: ~1-2小时 | 需要: 基础 JSON Schema 知识
任务
standards/ZWF20-Behavior-Data-Standard-v1.0.md 中有 JSON Schema 示例,但缺少 pattern、enum 等验证规则。完善它。
步骤
- 读
standards/ZWF20-Behavior-Data-Standard-v1.0.md 中的 Schema 部分
- 为关键字段添加验证规则:
member_did — 正则 ^did:zwf:0x[a-f0-9]+$
event_type — enum 限制已知事件类型
timestamp — minimum/maximum 合理范围
- 提交 PR,附带一个含有意错误数据的测试文件证明验证能捕捉到
参考
难度: 初级 | 时间: ~1-2小时 | 需要: 基础 JSON Schema 知识
任务
standards/ZWF20-Behavior-Data-Standard-v1.0.md中有 JSON Schema 示例,但缺少pattern、enum等验证规则。完善它。步骤
standards/ZWF20-Behavior-Data-Standard-v1.0.md中的 Schema 部分member_did— 正则^did:zwf:0x[a-f0-9]+$event_type— enum 限制已知事件类型timestamp— minimum/maximum 合理范围参考