Skip to content

Commit

Permalink
schema: allow multiple and more detailed authors
Browse files Browse the repository at this point in the history
  • Loading branch information
avivace committed Mar 16, 2024
1 parent f1e7cf3 commit ea47761
Showing 1 changed file with 35 additions and 9 deletions.
44 changes: 35 additions & 9 deletions game-schema-d4.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,26 @@
"oneOf": [
{
"type": "string",
"description": "A name, username or nickname representing the developer(s)"
"description": "A name, username or nickname representing the developer."
},
{
"type": "array"
"type": "array",
"items": {
"oneOf": [
{
"type": "string"
},
{
"$ref": "#/definitions/author"
}
]
}
},
{
"type": "object"
"$ref": "#/definitions/author"
}
]
],
"description": "The developer of the game, which can be a single string, an array of strings, an author object or an array of author objects."
},
"description": {
"type": "string",
Expand All @@ -35,7 +46,7 @@
"platform": {
"type": "string",
"description": "Target console",
"enum": ["GB", "GBC", "GBA"]
"enum": ["GB", "GBC", "GBA", "NES"]
},
"typetag": {
"type": "string",
Expand Down Expand Up @@ -98,10 +109,7 @@
},
{
"type": "string",
"enum": [
"hw:gbprinter",
"hw:gbcamera"
]
"enum": ["hw:gbprinter", "hw:gbcamera"]
}
]
}
Expand Down Expand Up @@ -155,6 +163,24 @@
},
"required": ["slug"],
"definitions": {
"author": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "A name, username or nickname representing the entity/person"
},
"link": {
"type": "string",
"format": "uri",
"description": "A link to the author's website or profile"
},
"role": {
"type": "string",
"description": "The role of the author in the project"
}
}
},
"file": {
"type": "object",
"properties": {
Expand Down

0 comments on commit ea47761

Please sign in to comment.