Skip to content

Commit 5204c1c

Browse files
committed
Fix misc. small attribute requirements.
1 parent 2aeeca6 commit 5204c1c

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

contest-api/json-schema/group.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"id": { "$ref": "common.json#/identifier" },
99
"icpc_id": { "type": [ "string", "null" ] },
1010
"name": { "type": "string" },
11-
"type": { "type": "string" }
11+
"type": { "type": [ "string", "null" ] }
1212
},
1313
"required": ["id", "name"],
1414
"$ref": "common.json#/strictproperties"

contest-api/json-schema/team-member.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"role": { "enum": [ "contestant", "coach" ] },
2020
"photo": { "$ref": "common.json#/imagerefsornull" }
2121
},
22-
"required": ["id", "team_id", "first_name", "last_name"],
22+
"required": ["id", "team_id", "first_name", "last_name", "role"],
2323
"$ref": "common.json#/strictproperties"
2424
}

contest-api/json-schema/team.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
"properties": {
1818
"x": { "type": "number" },
1919
"y": { "type": "number" },
20-
"rotation": { "type": "number" }
20+
"rotation": {
21+
"type": "number",
22+
"minimum": 0,
23+
"maximum": 360
24+
}
2125
},
2226
"required": ["x", "y", "rotation"],
2327
"$ref": "common.json#/strictproperties"

0 commit comments

Comments
 (0)