-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathschema.json
More file actions
61 lines (61 loc) · 1.68 KB
/
schema.json
File metadata and controls
61 lines (61 loc) · 1.68 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
59
60
61
{
"$schema": "https://json-schema.org/draft-07/schema",
"$id": "https://cdn.jsdelivr.net/npm/@gitloom/config/schema.json",
"title": "GitLoom Configuration Schema",
"description": "Defines the structure for .gitloom/config.json files",
"type": "object",
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string",
"format": "uri",
"description": "Reference to this JSON schema for editor support"
},
"__v": {
"type": "string",
"pattern": "^\\d+\\.\\d+\\.\\d+$",
"examples": ["1.0.0"],
"description": "Configuration version (semver)"
},
"contentTypes": {
"type": "object",
"description": "Content type definitions",
"additionalProperties": {
"type": "object",
"properties": {
"path": {
"type": "string",
"pattern": "^[^\\\\]*$",
"description": "Relative path for this content type (forward slashes only)"
},
"extension": {
"type": "string",
"pattern": "^\\..+$",
"default": ".md",
"examples": [".md", ".mdx"],
"description": "File extension (must include dot)"
}
},
"required": ["path"],
"additionalProperties": false
},
"minProperties": 1,
"errorMessage": {
"minProperties": "At least one content type must be defined"
}
}
},
"required": ["__v", "contentTypes"],
"examples": [
{
"$schema": "./gitloom-config-schema.json",
"__v": "1.0.0",
"contentTypes": {
"posts": {
"path": "content/posts",
"extension": ".md"
}
}
}
]
}