Skip to content

Commit 5107603

Browse files
committed
Removed custom type "decimal".
Note that "float" was also removed, but that doesn't impact this code, as it was just using the JSON number type.
1 parent dd1193b commit 5107603

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

contest-api/json-schema/common.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,6 @@
102102
"minimum": 0
103103
},
104104

105-
"decimal": {
106-
"type": "number",
107-
"multipleOf": 0.001
108-
},
109-
110105
"fileref": {
111106
"type": "object",
112107
"properties": {

contest-api/json-schema/judgement.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"max_run_time": {
1616
"oneOf": [
1717
{
18-
"$ref": "common.json#/decimal",
18+
"type": "number",
19+
"multipleOf": 0.001,
1920
"minimum": 0
2021
},
2122
{ "type": "null" }

contest-api/json-schema/problem.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
},
1616
"color": { "type": "string" },
1717
"time_limit": {
18-
"$ref": "common.json#/decimal",
18+
"type": "number",
19+
"multipleOf": 0.001,
1920
"minimum": 0
2021
},
2122
"test_data_count": {

contest-api/json-schema/run.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"time": { "$ref": "common.json#/abstime" },
1313
"contest_time": { "$ref": "common.json#/reltime" },
1414
"run_time": {
15-
"$ref": "common.json#/decimal",
15+
"type": "number",
16+
"multipleOf": 0.001,
1617
"minimum": 0
1718
}
1819
},

0 commit comments

Comments
 (0)