Skip to content

Commit e7212d4

Browse files
committed
update schema
1 parent 750ac35 commit e7212d4

File tree

1 file changed

+23
-97
lines changed

1 file changed

+23
-97
lines changed

script-schema.json

Lines changed: 23 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -5,49 +5,34 @@
55
"default": [],
66
"title": "Blood on the Clocktower Custom Script",
77
"minItems": 5,
8-
"maxItems": 151,
8+
"maxItems": 201,
99
"items": {
1010
"oneOf": [
1111
{
1212
"type": "object",
1313
"title": "Script Character",
14-
"required": [
15-
"id",
16-
"name",
17-
"team",
18-
"ability"
19-
],
14+
"required": ["id", "name", "team", "ability"],
2015
"additionalProperties": false,
2116
"properties": {
2217
"id": {
2318
"type": "string",
2419
"title": "Character ID, alphanumeric lowercase",
2520
"maxLength": 50,
26-
"examples": [
27-
"washerwoman",
28-
"lilmonsta",
29-
"fanggu"
30-
]
21+
"examples": ["washerwoman", "lilmonsta", "fanggu"]
3122
},
3223
"name": {
3324
"type": "string",
3425
"title": "Character name",
3526
"maxLength": 30,
36-
"examples": [
37-
"Washer Woman",
38-
"Lil' Monsta",
39-
"Fang-Gu"
40-
]
27+
"examples": ["Washer Woman", "Lil' Monsta", "Fang-Gu"]
4128
},
4229
"image": {
4330
"oneOf": [
4431
{
4532
"type": "string",
4633
"format": "uri",
4734
"title": "Character icon",
48-
"examples": [
49-
"https://i.imgur.com/character-icon.png"
50-
]
35+
"examples": ["https://i.imgur.com/character-icon.png"]
5136
},
5237
{
5338
"type": "array",
@@ -94,12 +79,7 @@
9479
"type": "string",
9580
"title": "The edition ID",
9681
"maxLength": 50,
97-
"examples": [
98-
"tb",
99-
"bmr",
100-
"snv",
101-
"fallofrome"
102-
]
82+
"examples": ["tb", "bmr", "snv", "fallofrome"]
10383
},
10484
"ability": {
10585
"type": "string",
@@ -124,11 +104,7 @@
124104
"firstNight": {
125105
"type": "number",
126106
"title": "First night wake-up priority. 0 means this character doesn't wake during the first night.",
127-
"examples": [
128-
37,
129-
0,
130-
15
131-
]
107+
"examples": [37, 0, 15]
132108
},
133109
"firstNightReminder": {
134110
"type": "string",
@@ -143,11 +119,7 @@
143119
"otherNight": {
144120
"type": "number",
145121
"title": "Other nights wake-up priority. 0 means this character doesn't wake during other nights.",
146-
"examples": [
147-
0,
148-
10,
149-
15
150-
]
122+
"examples": [0, 10, 15]
151123
},
152124
"otherNightReminder": {
153125
"type": "string",
@@ -167,12 +139,7 @@
167139
"items": {
168140
"type": "string",
169141
"maxLength": 30,
170-
"examples": [
171-
"Townsfolk",
172-
"Wrong",
173-
"Dead",
174-
"Is The Demon"
175-
]
142+
"examples": ["Townsfolk", "Wrong", "Dead", "Is The Demon"]
176143
}
177144
},
178145
"remindersGlobal": {
@@ -183,10 +150,7 @@
183150
"items": {
184151
"type": "string",
185152
"maxLength": 25,
186-
"examples": [
187-
"Drunk",
188-
"Is The Philosopher"
189-
]
153+
"examples": ["Drunk", "Is The Philosopher"]
190154
}
191155
},
192156
"setup": {
@@ -200,20 +164,13 @@
200164
"items": {
201165
"type": "object",
202166
"title": "An individual Jinx pair",
203-
"required": [
204-
"id",
205-
"reason"
206-
],
167+
"required": ["id", "reason"],
207168
"properties": {
208169
"id": {
209170
"type": "string",
210171
"title": "The ID of the other character this one is jinxed with.",
211172
"maxLength": 50,
212-
"examples": [
213-
"spy",
214-
"fanggu",
215-
"lilmonsta"
216-
]
173+
"examples": ["spy", "fanggu", "lilmonsta"]
217174
},
218175
"reason": {
219176
"type": "string",
@@ -233,10 +190,7 @@
233190
"items": {
234191
"type": "object",
235192
"title": "A special app integration feature",
236-
"required": [
237-
"name",
238-
"type"
239-
],
193+
"required": ["name", "type"],
240194
"properties": {
241195
"type": {
242196
"type": "string",
@@ -346,10 +300,7 @@
346300
"team": "townsfolk",
347301
"firstNightReminder": "Show the Townsfolk character token. Point to both the *TOWNSFOLK* and *WRONG* players.",
348302
"otherNightReminder": "",
349-
"reminders": [
350-
"Townsfolk",
351-
"Wrong"
352-
],
303+
"reminders": ["Townsfolk", "Wrong"],
353304
"setup": false,
354305
"ability": "You start knowing that 1 of 2 players is a particular Townsfolk.",
355306
"flavor": "Bloodstains on a dinner jacket? No, this is cooking sherry. How careless.",
@@ -363,53 +314,36 @@
363314
"title": "Official character ID",
364315
"maxLength": 20,
365316
"description": "If you want to include official characters in the script, it is sufficient to provide their ID as a string",
366-
"examples": [
367-
"soldier",
368-
"imp",
369-
"washerwoman"
370-
]
317+
"examples": ["soldier", "imp", "washerwoman"]
371318
},
372319
{
373320
"type": "object",
374321
"title": "Script Metadata",
375-
"required": [
376-
"id",
377-
"name"
378-
],
322+
"required": ["id", "name"],
379323
"properties": {
380324
"id": {
381325
"type": "string",
382326
"title": "The ID property must be called '_meta' for the Script metadata object.",
383-
"enum": [
384-
"_meta"
385-
]
327+
"enum": ["_meta"]
386328
},
387329
"name": {
388330
"type": "string",
389331
"title": "The script name",
390332
"maxLength": 50,
391-
"examples": [
392-
"Fall of Rome",
393-
"My Custom Homebrew"
394-
]
333+
"examples": ["Fall of Rome", "My Custom Homebrew"]
395334
},
396335
"author": {
397336
"type": "string",
398337
"title": "The script author",
399338
"maxLength": 50,
400-
"examples": [
401-
"The Pandemonium Institute",
402-
"Your Name"
403-
]
339+
"examples": ["The Pandemonium Institute", "Your Name"]
404340
},
405341
"logo": {
406342
"type": "string",
407343
"format": "uri",
408344
"maxLength": 250,
409345
"title": "The script logo image",
410-
"examples": [
411-
"https://imgur.com/logo.png"
412-
]
346+
"examples": ["https://imgur.com/logo.png"]
413347
},
414348
"hideTitle": {
415349
"type": "boolean",
@@ -420,9 +354,7 @@
420354
"format": "uri",
421355
"maxLength": 250,
422356
"title": "The script background image",
423-
"examples": [
424-
"https://imgur.com/background.jpg"
425-
]
357+
"examples": ["https://imgur.com/background.jpg"]
426358
},
427359
"almanac": {
428360
"type": "string",
@@ -513,20 +445,14 @@
513445
"type": "object",
514446
"title": "Official Character (deprecated)",
515447
"deprecated": true,
516-
"required": [
517-
"id"
518-
],
448+
"required": ["id"],
519449
"additionalProperties": false,
520450
"properties": {
521451
"id": {
522452
"type": "string",
523453
"maxLength": 20,
524454
"title": "Official character ID",
525-
"examples": [
526-
"soldier",
527-
"imp",
528-
"washerwoman"
529-
]
455+
"examples": ["soldier", "imp", "washerwoman"]
530456
}
531457
}
532458
}

0 commit comments

Comments
 (0)