chore: 添加 JSON Schema
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"$schema": "./data.schema.json",
|
||||||
"timeline": [
|
"timeline": [
|
||||||
{
|
{
|
||||||
"startTime": "2024-03-10 21:27",
|
"startTime": "2024-03-10 21:27",
|
||||||
|
|||||||
@@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"timeline"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"timeline": {
|
||||||
|
"type": "array",
|
||||||
|
"title": "时间线",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"startTime",
|
||||||
|
"endTime"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"startTime": {
|
||||||
|
"type": "string",
|
||||||
|
"title": "开始时间"
|
||||||
|
},
|
||||||
|
"endTime": {
|
||||||
|
"type": "string",
|
||||||
|
"title": "结束时间"
|
||||||
|
},
|
||||||
|
"content": {
|
||||||
|
"type": "string",
|
||||||
|
"title": "直播内容",
|
||||||
|
"default": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"defaultSnippets": [
|
||||||
|
{
|
||||||
|
"label": "基础格式",
|
||||||
|
"body": {
|
||||||
|
"startTime": "",
|
||||||
|
"endTime": "",
|
||||||
|
"content": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user