forked from NateScarlet/holiday-cn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.json
29 lines (29 loc) · 851 Bytes
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/schema.json",
"type": "object",
"properties": {
"year": {
"type": "number",
"description": "年份"
},
"papers": {
"type": "array",
"items": { "type": "string" },
"description": "所用国务院文件网址列表"
},
"days": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string", "description": "节日名称" },
"date": { "type": "string", "description": "ISO 8601 日期" },
"isOffDay": { "type": "boolean", "description": "是否为休息日" }
},
"required": ["name", "date", "isOffDay"]
}
}
},
"required": ["year", "papers", "days"]
}