Skip to content

Commit 02a4cad

Browse files
Merge pull request #4258 from cpinitiative/json-schema-downgrade
Burn down the website by downgrading the JSON schema to draft 07
2 parents bbc8e5b + 8b6fe0f commit 02a4cad

File tree

2 files changed

+39
-5
lines changed

2 files changed

+39
-5
lines changed

content/problems.schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://json-schema.org/draft/2020-12/schema",
2+
"$schema": "https://json-schema.org/draft-07/schema",
33
"$id": "https://usaco.guide/problems.schema.json",
44
"title": "Problem Data",
55
"description": "Stores the problems (and their solutions) associated with a module.",

static/problems.schema.json

+38-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://json-schema.org/draft/2020-12/schema",
2+
"$schema": "https://json-schema.org/draft-07/schema",
33
"$id": "https://usaco.guide/problems.schema.json",
44
"title": "Problem Data",
55
"description": "Stores the problems (and their solutions) associated with a module.",
@@ -34,9 +34,39 @@
3434
"Silver",
3535
"Gold",
3636
"Platinum",
37+
"Old Bronze",
38+
"Old Silver",
39+
"Old Gold",
40+
"AC",
41+
"CC",
42+
"CF",
43+
"EDU",
44+
"Gym",
45+
"CSA",
3746
"CSES",
47+
"DMOJ",
48+
"FHC",
49+
"HR",
50+
"Kattis",
51+
"LC",
52+
"POI",
53+
"SPOJ",
54+
"TLX",
55+
"YS",
56+
"CCC",
57+
"CCO",
58+
"DMOPC",
59+
"APIO",
60+
"Baltic OI",
61+
"CEOI",
62+
"COI",
63+
"COCI",
3864
"IOI",
39-
"___TODO: add more here"
65+
"IZhO",
66+
"JOI",
67+
"LMiO",
68+
"RMI",
69+
"NOI.sg"
4070
]
4171
},
4272
"difficulty": {
@@ -63,11 +93,15 @@
6393
"description": "The type of the solution.",
6494
"type": "string",
6595
"enum": [
96+
"autogen-label-from-site",
6697
"internal",
98+
"link",
99+
"CPH",
67100
"USACO",
101+
"IOI",
102+
"none",
68103
"in-module",
69-
"autogen-label-from-site",
70-
"none"
104+
"sketch"
71105
]
72106
},
73107
"usacoId": { "type": "string" },

0 commit comments

Comments
 (0)