-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathccmod-json-schema.json
More file actions
121 lines (121 loc) · 4.23 KB
/
ccmod-json-schema.json
File metadata and controls
121 lines (121 loc) · 4.23 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"$schema": "http://json-schema.org/draft-07/schema#",
"id": "https://json.schemastore.org/ccmod.json",
"additionalProperties": true,
"$defs": {
"dependency": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/semver"
}
},
"semver": {
"type": "string"
},
"localisedString": {
"type": ["string", "object"],
"properties": {
"en_US": { "type": "string" },
"de_DE": { "type": "string" },
"fr_FR": { "type": "string" },
"zh_CN": { "type": "string" },
"zh_TW": { "type": "string" },
"ja_JP": { "type": "string" },
"ko_KR": { "type": "string" }
}
}
},
"title": "CCMod Manifest",
"description": "Configuration file for a mod manifset file for the game CrossCode",
"type": "object",
"properties": {
"id": {
"title": "id",
"type": "string",
"description": "ID of the mod, used for various fallbacks"
},
"title": {
"title": "title",
"$ref": "#/$defs/localisedString",
"description": "Title of the mod, what users will see in-game"
},
"description": {
"title": "description",
"$ref": "#/$defs/localisedString",
"description": "Description of the mod"
},
"version": {
"title": "version",
"$ref": "#/$defs/semver",
"description": "The version of this mod following semantic versioning (https://semver.org)"
},
"tags": {
"title": "tags",
"type": "array",
"items": {
"type": "string"
},
"minItems": 0,
"description": "Array of mod tags. See the full list of official tags: \nhttps://github.com/CCDirectLink/CCModDB/blob/master/CCMOD-STANDARD.md#mod-tag-list"
},
"icons": {
"title": "icons",
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "The icon of the mod. Currently only the 24x24 size is supported"
},
"homepage": {
"title": "homepage",
"type": "string",
"description": "Mod homepage link"
},
"repository": {
"title": "repository",
"type": "string",
"description": "Mod repository link"
},
"authors": {
"title": "authors",
"type": ["string", "array"],
"items": {
"type": "string"
},
"minItems": 1,
"description": "A list of the mod's authors"
},
"dependencies": {
"title": "dependencies",
"type": "object",
"description": "The mods and versions of those mods that this mod depends on",
"$ref": "#/$defs/dependency"
},
"plugin": {
"title": "plugin",
"type": "string",
"description": "Path of the javascript plugin file relative to mod root. This is the recommended method"
},
"preload": {
"title": "preload",
"type": "string",
"description": "Path of the javascript preload file relative to mod root. The file will be executed at the preload loading stage"
},
"postload": {
"title": "postload",
"type": "string",
"description": "Path of the javascript preload file relative to mod root. The file will be executed at the postload loading stage"
},
"prestart": {
"title": "prestart",
"type": "string",
"description": "Path of the javascript prestart file relative to mod root. The file will be executed at the prestart loading stage"
},
"poststart": {
"title": "poststart",
"type": "string",
"description": "Path of the javascript poststart file relative to mod root. The file will be executed at the poststart loading stage"
}
},
"required": ["id", "version"]
}