-
Notifications
You must be signed in to change notification settings - Fork 2
/
pzstudio.schema.json
129 lines (129 loc) · 4.23 KB
/
pzstudio.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
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
122
123
124
125
126
127
128
129
{
"$schema": "pzstudio.schema.json",
"title": "JSON schema for Project Zomboid Studio project.json files",
"type": "object",
"properties": {
"title": {
"description": "The mod title.",
"type": "string"
},
"authors": {
"description": "The mod author(s). Use a string or an array of string.",
"type": ["string", "array"],
"items": {
"type": "string"
}
},
"workshop": {
"type": "object",
"properties": {
"id": {
"description": "The steam workshop generated id, don't forget to copy/paste it here after uploading the first time.",
"type": "integer"
},
"visibility": {
"description": "The mod visibility on steam workshop.",
"type": "string",
"enum": ["public", "friendsOnly", "private", "unlisted"]
},
"tags": {
"description": "The mod workshop tags.",
"type": "array",
"items": {
"type": "string",
"enum": ["Build 40", "Build 41", "Balance", "Building", "Clothing/Armor", "Food", "Framework", "Hardmode", "Interface", "Items", "Language/Translation", "Literature", "Map", "Military", "Misc", "Models", "Multiplayer", "Pop Culture", "Realistic", "Silly/Fun", "Textures", "Traits", "Vehicles", "Weapons"]
}
},
"excludes": {
"description": "List of mod ids to exclude from the workshop.",
"type": "array",
"items": [
{
"type": "string"
}
]
}
},
"required": [
"visibility",
"tags"
]
},
"mods": {
"description": "List of mods in this projects.",
"patternProperties": {
"^.*$": {
"$ref": "#/$defs/mod"
}
}
},
"required": [
"title",
"authors",
"workshop",
"mods"
]
},
"$defs": {
"mod": {
"description": "The mod unique id.",
"type": "object",
"properties": {
"name": {
"description": "The mod visible name.",
"type": "string"
},
"description": {
"description": "The mod visible description.",
"type": "string"
},
"poster": {
"description": "The mod poster image(s).",
"type": ["string", "array"],
"items": [
{
"type": "string"
}
]
},
"icon": {
"description": "The mod icon image.",
"type": "string"
},
"require": {
"description": "The mod ids required by this mod.",
"type": ["string", "array"],
"items": [
{
"type": "string"
}
]
},
"pack": {
"description": "",
"type": "string"
},
"tiledef": {
"description": "",
"type": "string"
},
"url": {
"description": "",
"type": "string"
},
"versionMin": {
"description": "",
"type": "string"
},
"versionMax": {
"description": "",
"type": "string"
}
},
"required": [
"name",
"description"
]
}
}
}