-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathschema.json
209 lines (209 loc) · 8.2 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
{
"definitions": {
"date": {
"type": "object",
"title": "Date",
"description": "Date wraps both a rough date and an optional exact date.",
"required": ["exact", "rough"],
"properties": {
"exact": {
"anyOf": [{ "type": "null" }, { "type": "string" }],
"description": "A day-precise date formatted as ISO 8601.",
"examples": ["2018-10-05T00:00:00.000", "2016-09-30T00:00:00.000"],
"title": "Exact date"
},
"rough": {
"description": "A quarter- or month-precise date.",
"examples": ["Q1 2020", "Q4 2020", "January 2021", "December 2025"],
"title": "Rough date",
"type": "string"
}
}
}
},
"$id": "https://whatsinstandard.com/api/v6/schema.json",
"type": "object",
"title": "What's in Standard? API v6",
"additionalProperties": true,
"required": ["deprecated", "sets", "bans"],
"properties": {
"$schema": "./schema.json",
"deprecated": {
"type": "boolean",
"title": "Deprecated",
"description": "Whether this API version is deprecated or not. Configure your software to notify you if this field is ever true so you aren't caught off-guard if this version is deprecated then eventually killed.",
"examples": [false, true],
"readOnly": true
},
"sets": {
"type": "array",
"title": "Sets",
"description": "A superset of the sets in Standard, ordered from least recent release date (`enterDate.exact`) to newest. To get a list of Standard sets you MUST filter this array by comparing your local time to each set's enter and exit date, as the array by itself will contain sets that have already exited Standard as well as sets that have not yet entered it.",
"readOnly": true,
"items": {
"type": "object",
"title": "Set",
"description": "A Magic: The Gathering set.",
"readOnly": true,
"required": [
"name",
"code",
"codename",
"enterDate",
"exitDate",
"symbol"
],
"properties": {
"name": {
"anyOf": [{ "type": "null" }, { "type": "string" }],
"title": "Name",
"description": "The human-friendly name of the set, if known.",
"examples": ["Kaladesh", "Amonkhet", "Hour of Devastation"],
"readOnly": true
},
"code": {
"anyOf": [{ "type": "null" }, { "type": "string" }],
"title": "Code",
"description": "Wizards of the Coasts's official code for the set.",
"examples": ["KLD", "HOU", "W17", "M20"],
"readOnly": true
},
"codename": {
"anyOf": [{ "type": "null" }, { "type": "string" }],
"title": "Codename",
"description": "Pre-launch development codename given to the set.",
"examples": ["Lock", "Stock", "Barrel", "Spaghetti", "Meatballs"],
"readOnly": true
},
"enterDate": {
"$ref": "#/definitions/date",
"title": "Enter datetime",
"description": "The date this set enters or entered Standard.",
"readOnly": true
},
"exitDate": {
"$ref": "#/definitions/date",
"title": "Exit datetime",
"description": "The date this set exits or exited Standard.",
"readOnly": true
},
"symbol": {
"type": "object",
"title": "Symbol",
"description": "A set of URLs to access this set's symbol.",
"readOnly": true,
"required": ["common", "uncommon", "rare", "mythicRare"],
"properties": {
"common": {
"type": "string",
"title": "Set symbol URL (common)",
"description": "A URL to a set symbol in common coloring.",
"examples": [
"https://gatherer.wizards.com/Handlers/Image.ashx?type=symbol&size=large&rarity=C&set=KLD",
"https://gatherer.wizards.com/Handlers/Image.ashx?type=symbol&size=large&rarity=C&set=HOU"
],
"format": "uri",
"readOnly": true
},
"uncommon": {
"type": "string",
"title": "Set symbol URL (uncommon)",
"description": "A URL to a set symbol in uncommon coloring.",
"examples": [
"https://gatherer.wizards.com/Handlers/Image.ashx?type=symbol&size=large&rarity=U&set=KLD",
"https://gatherer.wizards.com/Handlers/Image.ashx?type=symbol&size=large&rarity=U&set=HOU"
],
"format": "uri",
"readOnly": true
},
"rare": {
"type": "string",
"title": "Set symbol URL (rare)",
"description": "A URL to a set symbol in rare coloring.",
"examples": [
"https://gatherer.wizards.com/Handlers/Image.ashx?type=symbol&size=large&rarity=R&set=KLD",
"https://gatherer.wizards.com/Handlers/Image.ashx?type=symbol&size=large&rarity=R&set=HOU"
],
"format": "uri",
"readOnly": true
},
"mythicRare": {
"type": "string",
"title": "Set symbol URL (mythic rare)",
"description": "A URL to a set symbol in mythic rare coloring.",
"examples": [
"https://gatherer.wizards.com/Handlers/Image.ashx?type=symbol&size=large&rarity=M&set=KLD",
"https://gatherer.wizards.com/Handlers/Image.ashx?type=symbol&size=large&rarity=M&set=HOU"
],
"format": "uri",
"readOnly": true
}
}
}
}
}
},
"bans": {
"type": "array",
"title": "Bans",
"description": "Cards that have been banned from Standard, ordered from oldest ban to newest. This array may contain bans from a previous rotation; you should filter them out based on the provided set `setCode` and that set's exit date from Standard.",
"items": {
"type": "object",
"title": "Card",
"description": "A card currently banned from Standard.",
"required": [
"cardName",
"cardImageUrl",
"setCode",
"reason",
"announcementUrl"
],
"properties": {
"name": {
"type": "string",
"title": "Card name",
"description": "The official English name of the banned card.",
"examples": ["Rampaging Ferocidon"],
"readOnly": true
},
"cardImageUrl": {
"type": "string",
"title": "Card image URL",
"description": "A URL to an image of the banned card.",
"format": "uri",
"examples": [
"https://img.scryfall.com/cards/large/en/xln/154.jpg?1527429722"
],
"readOnly": true
},
"setCode": {
"type": "string",
"title": "Set code",
"description": "The set the banned card was printed into, specified by its `code` property.",
"examples": ["XLN"],
"readOnly": true
},
"reason": {
"type": "string",
"title": "Reason",
"description": "Human-readable description for why the card was banned.",
"examples": [
"Banned for being too effective a shutdown against counters to aggressive red (filling the board with small creatures and gaining life)."
],
"readOnly": true
},
"announcementUrl": {
"type": "string",
"title": "Announcement URL",
"description": "A URL to the page where Wizards of the Coast officially announced the card would be banned.",
"format": "uri",
"examples": [
"https://magic.wizards.com/en/articles/archive/news/january-15-2018-banned-and-restricted-announcement-2018-01-15"
],
"readOnly": true
}
}
}
}
}
}