guanghulab/hldp/schema/broadcast.schema.json
Guanghu Domestic Migration d1e47f4565
Some checks are pending
自动更新代码和重启 / update-and-restart (push) Waiting to run
CI检查 + 自动部署 / check (push) Waiting to run
CI检查 + 自动部署 / deploy (push) Blocked by required conditions
重启聊天服务 / restart (push) Waiting to run
chore: import sanitized domestic snapshot for REPO-002
Source snapshot: ca48d3ddf926d79aa138306164169baf764bb829
2026-07-17 15:54:41 +08:00

68 lines
1.9 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://guanghulab.com/hldp/schema/broadcast.schema.json",
"title": "HLDP Broadcast Schema · 广播数据格式",
"description": "定义系统广播的 payload 结构",
"protocol": "HLDP",
"version": "1.0",
"parent_language": "TCS Language Core",
"copyright": "国作登字-2026-A-00037559",
"designer": "TCS-0002∞ 冰朔",
"allOf": [
{ "$ref": "hldp-core.schema.json" }
],
"properties": {
"data_type": { "const": "broadcast" },
"payload": {
"type": "object",
"required": ["broadcast_id", "title", "broadcast_type"],
"properties": {
"broadcast_id": {
"type": "string",
"description": "广播编号"
},
"title": {
"type": "string",
"description": "广播标题"
},
"broadcast_type": {
"type": "string",
"enum": ["task", "announcement", "alert", "syslog", "milestone"],
"description": "广播类型"
},
"target_dev": {
"type": "string",
"description": "目标开发者编号"
},
"target_persona": {
"type": "string",
"description": "目标人格体编号"
},
"module": {
"type": "string",
"description": "相关模块"
},
"content": {
"type": "string",
"description": "广播内容Markdown 格式)"
},
"status": {
"type": "string",
"enum": ["pending", "delivered", "acknowledged", "completed", "expired"],
"description": "广播状态"
},
"issued_at": {
"type": "string",
"format": "date-time",
"description": "发布时间"
},
"deadline": {
"type": ["string", "null"],
"format": "date-time",
"description": "截止时间"
}
}
}
}
}