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
58 lines (58 loc) · 1.75 KB
/
Copy pathlesson.json
File metadata and controls
58 lines (58 loc) · 1.75 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
53
54
55
56
57
58
{
"$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"
},
"evidence_level": {
"type": "string",
"enum": ["E0", "E1", "E2", "E3", "E4"],
"default": "E0",
"description": "How well this lesson is evidenced — E0 self-reported, E1 maintainer reviewed, E2 locally reproduced, E3 CI/sandbox verified, E4 reused by another contributor. Missing means E0. See docs/trust-semantics.md"
},
"source": {
"type": "string",
"description": "Origin of this lesson"
},
"created": {
"type": "string",
"description": "Creation timestamp"
},
"updated": {
"type": "string",
"description": "Last-updated timestamp"
}
}
}