-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.json
76 lines (76 loc) · 2.28 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"$id": "https://github.com/timzatko/TW-Calc-Website-Events/tree/master/schema.json",
"title": "Event",
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[a-z]+[_a-z]*$"
},
"name": {
"type": "string",
"pattern": "^[ a-zA-Z0-9!?'\"&,.-]+$"
},
"items": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "number"
}
},
"sets": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]+$"
}
},
"quests": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "number"
}
},
"year": {
"type": "integer",
"minimum": 0
},
"tombola": {
"type": "integer",
"minimum": 0
},
"forum_url": {
"type": "string",
"pattern": "^(https?):\\/\\/[^\\s$.?#].[^\\s]*$"
},
"from": {
"type": "string",
"pattern": "^(\\d{4})-(01|02|03|04|05|06|07|08|09|10|11|12)-(01|02|03|04|05|06|07|08|09|[[1-2][0-9]|30|31) [0-5][0-9]:[0-5][0-9]:[0-5][0-9]$"
},
"beta_from": {
"type": "string",
"pattern": "^(\\d{4})-(01|02|03|04|05|06|07|08|09|10|11|12)-(01|02|03|04|05|06|07|08|09|[[1-2][0-9]|30|31) [0-5][0-9]:[0-5][0-9]:[0-5][0-9]$"
},
"to": {
"type": "string",
"pattern": "^(\\d{4})-(01|02|03|04|05|06|07|08|09|10|11|12)-(01|02|03|04|05|06|07|08|09|[[1-2][0-9]|30|31) [0-5][0-9]:[0-5][0-9]:[0-5][0-9]$"
},
"beta_to": {
"type": "string",
"pattern": "^(\\d{4})-(01|02|03|04|05|06|07|08|09|10|11|12)-(01|02|03|04|05|06|07|08|09|[[1-2][0-9]|30|31) [0-5][0-9]:[0-5][0-9]:[0-5][0-9]$"
},
"hidden": {
"type": "boolean"
},
"widget_config": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[0-9A-F]+$"
}
}
},
"required": ["key", "year"]
}