Skip to content

Commit 5ad89f8

Browse files
committed
schema: more detailed website links, wrap a couple of properties in "use-requirements", add "commercial" and "physical-release" properties
1 parent db6b7fe commit 5ad89f8

1 file changed

Lines changed: 50 additions & 6 deletions

File tree

game-schema-d4.json

Lines changed: 50 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,26 +124,70 @@
124124
},
125125
"repository": {
126126
"type": "string",
127-
"description": "Repository or URL where the source can be found",
127+
"description": "Repository or URL where the source code can be found",
128128
"format": "uri"
129129
},
130130
"website": {
131+
"oneOf": [
132+
{
133+
"type": "string",
134+
"format": "uri"
135+
},
136+
{
137+
"type": "array",
138+
"items": {
139+
"type": "string",
140+
"format": "uri"
141+
}
142+
},
143+
{
144+
"type": "object",
145+
"properties": {
146+
"title": {
147+
"type": "string",
148+
"description": "The optional title of the link."
149+
},
150+
"type": {
151+
"type": "string",
152+
"description": "The optional type of the link, indicating the media type or link relation."
153+
},
154+
"url": {
155+
"type": "string",
156+
"format": "uri",
157+
"description": "The URL of the link."
158+
}
159+
},
160+
"required": ["url"]
161+
}
162+
],
163+
"description": "Website(s) related to the game, which can be provided as either a single URL or an array of URLs."
164+
},
165+
"physical-release": {
131166
"type": "string",
132167
"format": "uri",
133-
"description": "Game website or page"
168+
"description": "If the entry has/had a physical edition available, provide here a link to where this edition can be purchased or more information about it can be found."
134169
},
135170
"wip": {
136171
"type": "boolean",
137172
"description": "Flag a game as work-in-progress (not yet completely stable/bugfree)"
138173
},
139-
"play": {
174+
"commercial": {
175+
"type": "boolean",
176+
"description": "Flag the entry as a commercial release"
177+
},
178+
"use-requirements": {
140179
"type": "object",
141180
"properties": {
142-
"enable": {
181+
"disabledownloads": {
182+
"type": "boolean",
183+
"description": "Disable downloads for all the attached files to the entry"
184+
},
185+
"disableplay": {
143186
"type": "boolean",
144-
"description": "Allow or not the game to be played directly on the website"
187+
"description": "Allow or not the game to be played directly on the website through an emulator"
145188
}
146-
}
189+
},
190+
"description": "Global preferences aimed at potential users of the database (e.g. the Homebrew Hub frontend). Those values ovverride the ones set to the single files."
147191
},
148192
"nsfw": {
149193
"type": "boolean",

0 commit comments

Comments
 (0)