Skip to content

Commit 897acfc

Browse files
committed
schema: allow any "event:" tag
1 parent 1232815 commit 897acfc

1 file changed

Lines changed: 36 additions & 38 deletions

File tree

game-schema-d4.json

Lines changed: 36 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -83,46 +83,44 @@
8383
"format": "date",
8484
"description": "The date the entry was first released"
8585
},
86-
"tags":
87-
{
86+
"tags": {
8887
"type": "array",
8988
"description": "A list of the categories representing the entry",
90-
"items":
91-
{
92-
"type": "string",
93-
"enum":
94-
[
95-
"Arcade",
96-
"RPG",
97-
"Open Source",
98-
"Adventure",
99-
"Action",
100-
"Puzzle",
101-
"Platform",
102-
"gbajam21",
103-
"gbcompo21",
104-
"gbcompo21-shortlist",
105-
"gbprinter",
106-
"gb-showdown-22",
107-
"Survival",
108-
"Shooter",
109-
"Visual Novel",
110-
"Simulation",
111-
"Educational",
112-
"Rhythm",
113-
"Card Game",
114-
"Strategy",
115-
"Racing",
116-
"Sports",
117-
"Fighting",
118-
"Interactive Fiction",
119-
"event:gbshowdown23",
120-
"event:liksang2000-compo",
121-
"event:bung-1st-coding-compo",
122-
"event:bung-3rd-coding-compo",
123-
"event:bung-2nd-coding-compo",
124-
"event:freedom-2001-gameboy-developers-competition",
125-
"event:gbcompo23"
89+
"items": {
90+
"anyOf": [
91+
{
92+
"type": "string",
93+
"enum": [
94+
"Arcade",
95+
"RPG",
96+
"Open Source",
97+
"Adventure",
98+
"Action",
99+
"Puzzle",
100+
"Platform",
101+
"gbajam21",
102+
"gbcompo21",
103+
"gbcompo21-shortlist",
104+
"gbprinter",
105+
"gb-showdown-22",
106+
"Survival",
107+
"Shooter",
108+
"Visual Novel",
109+
"Simulation",
110+
"Educational",
111+
"Rhythm",
112+
"Card Game",
113+
"Strategy",
114+
"Racing",
115+
"Sports",
116+
"Fighting",
117+
"Interactive Fiction"
118+
]
119+
},
120+
{
121+
"type": "string",
122+
"pattern": "^event:[a-z0-9._-]+$"
123+
}
126124
]
127125
}
128126
},

0 commit comments

Comments
 (0)