forked from Ikalus1988/MisakaNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlesson.json
More file actions
52 lines (52 loc) · 1.41 KB
/
Copy pathlesson.json
File metadata and controls
52 lines (52 loc) · 1.41 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/Ikalus1988/MisakaNet/schemas/lesson.json",
"title": "MisakaNet Lesson",
"description": "Schema for validating MisakaNet lesson Markdown frontmatter",
"type": "object",
"required": ["title", "domain", "status"],
"properties": {
"title": {
"type": "string",
"minLength": 4,
"maxLength": 120,
"description": "Lesson title"
},
"domain": {
"type": "string",
"minLength": 2,
"description": "Knowledge domain — should match a domain file in docs/domains/"
},
"tags": {
"type": "array",
"items": { "type": "string", "minLength": 2 },
"minItems": 1,
"maxItems": 10,
"uniqueItems": true,
"description": "Search tags for BM25 retrieval"
},
"language": {
"type": "string",
"pattern": "^[a-z]{2}(-[A-Z]{2})?$",
"default": "zh",
"description": "ISO 639-1 language code (e.g. zh, en, ja). Default: zh"
},
"status": {
"type": "string",
"enum": ["published", "draft", "archived"],
"description": "Publication status"
},
"source": {
"type": "string",
"description": "Origin of this lesson"
},
"created": {
"type": "string",
"description": "Creation timestamp"
},
"updated": {
"type": "string",
"description": "Last-updated timestamp"
}
}
}