Skip to content

Commit e9452e5

Browse files
committed
schema: add a couple of hardware support tags
1 parent eb2c6cb commit e9452e5

1 file changed

Lines changed: 40 additions & 71 deletions

File tree

game-schema-d4.json

Lines changed: 40 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@
101101
"gbajam21",
102102
"gbcompo21",
103103
"gbcompo21-shortlist",
104-
"gbprinter",
105104
"gb-showdown-22",
106105
"Survival",
107106
"Shooter",
@@ -120,139 +119,109 @@
120119
{
121120
"type": "string",
122121
"pattern": "^event:[a-z0-9._-]+$"
122+
},
123+
{
124+
"type": "string",
125+
"enum": [
126+
// The homebrew makes use of the Game Boy Camera (Pocket Camera) accessory
127+
"hw:gbprinter",
128+
// The homebrew makes use of the Game Boy Printer (Pocket Printer) accessory
129+
"hw:gbcamera"
130+
]
123131
}
124132
]
125133
}
126134
},
127-
"alias":
128-
{
135+
"alias": {
129136
"description": "A list of other names with which the entry can be referred to",
130137
"type": "array",
131-
"items":
132-
{
138+
"items": {
133139
"type": "string"
134140
}
135141
},
136-
"repository":
137-
{
142+
"repository": {
138143
"type": "string",
139144
"description": "Repository or URL where the source can be found",
140145
"format": "uri"
141146
},
142-
"website":
143-
{
147+
"website": {
144148
"type": "string",
145149
"format": "uri",
146150
"description": "Game website or page"
147151
},
148-
"wip":
149-
{
152+
"wip": {
150153
"type": "boolean",
151154
"description": "Flag a game as work-in-progress (not yet completely stable/bugfree)"
152155
},
153-
"play":
154-
{
156+
"play": {
155157
"type": "object",
156-
"properties":
157-
{
158-
"enable":
159-
{
158+
"properties": {
159+
"enable": {
160160
"type": "boolean",
161161
"description": "Allow or not the game to be played directly on the website"
162162
}
163163
}
164164
},
165-
"nsfw":
166-
{
165+
"nsfw": {
167166
"type": "boolean",
168167
"description": "The game contains NSFW or (potentially) controversial content"
169168
},
170-
"screenshots":
171-
{
169+
"screenshots": {
172170
"type": "array",
173-
"items":
174-
{
171+
"items": {
175172
"type": "string"
176173
}
177174
},
178-
"files":
179-
{
175+
"files": {
180176
"type": "array",
181-
"items":
182-
{
177+
"items": {
183178
"$ref": "#/definitions/file"
184179
}
185180
}
186181
},
187-
"required":
188-
[
189-
"slug"
190-
],
191-
"definitions":
192-
{
193-
"file":
194-
{
182+
"required": ["slug"],
183+
"definitions": {
184+
"file": {
195185
"type": "object",
196-
"properties":
197-
{
198-
"filename":
199-
{
186+
"properties": {
187+
"filename": {
200188
"type": "string"
201189
},
202-
"description":
203-
{
190+
"description": {
204191
"type": "string"
205192
},
206-
"type":
207-
{
193+
"type": {
208194
"type": "string",
209-
"enum":
210-
[
211-
"rom",
212-
"manual",
213-
"release"
214-
]
195+
"enum": ["rom", "manual", "release"]
215196
},
216-
"playable":
217-
{
197+
"playable": {
218198
"type": "boolean",
219199
"description": "Describes if the file is a GB/GBC ROM"
220200
},
221-
"hash":
222-
{
201+
"hash": {
223202
"type": "object",
224-
"properties":
225-
{
226-
"md5":
227-
{
203+
"properties": {
204+
"md5": {
228205
"type": "string"
229206
},
230-
"sha1":
231-
{
207+
"sha1": {
232208
"type": "string"
233209
},
234-
"sha256":
235-
{
210+
"sha256": {
236211
"type": "string"
237212
}
238213
}
239214
},
240-
"default":
241-
{
215+
"default": {
242216
"type": "boolean",
243217
"description": "Describes if the file is the default ROM to play"
244218
}
245219
},
246-
"required":
247-
[
248-
"filename"
249-
]
220+
"required": ["filename"]
250221
},
251-
"license":
252-
{
222+
"license": {
253223
"type": "string",
254-
"enum":
255-
[
224+
"enum": [
256225
"0BSD",
257226
"AAL",
258227
"Abstyles",

0 commit comments

Comments
 (0)