-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
judge_output.json
158 lines (158 loc) Β· 5.99 KB
/
judge_output.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
{
"$ref": "#/definitions/feedback",
"definitions": {
"feedback": {
"description": "Root node of the test hierarchy that contains all tests of the submission. Cannot contain a command key with a string value to avoid confusion with the partial schema.",
"type": "object",
"required": ["accepted", "status"],
"properties": {
"accepted": { "$ref": "#/definitions/accepted" },
"status": { "$ref": "#/definitions/status" },
"description": { "$ref": "#/definitions/description" },
"messages": { "type": "array", "items": { "$ref": "#/definitions/message" } },
"groups": { "type": "array", "items": { "$ref": "#/definitions/tab" } },
"annotations": { "type": "array", "items": { "$ref": "#/definitions/annotation" } }
},
"not": {
"required": ["command"],
"properties": {
"command": { "type": "string" }
}
}
},
"tab": {
"description": "Node at depth 1 in the test hierarchy that represents test cases under the same tab.",
"type": "object",
"required": [],
"properties": {
"description": { "$ref": "#/definitions/description" },
"badgeCount": { "$ref": "#/definitions/badgeCount" },
"messages": { "type": "array", "items": { "$ref": "#/definitions/message" } },
"groups": { "type": "array", "items": { "$ref": "#/definitions/context" } },
"permission": { "$ref": "#/definitions/permission" }
}
},
"context": {
"type": "object",
"description": "Node at depth 2 in the test hierarchy whose contained test cases depend on each other.",
"required": ["accepted"],
"properties": {
"accepted": { "$ref": "#/definitions/accepted" },
"description": { "$ref": "#/definitions/message" },
"messages": { "type": "array", "items": { "$ref": "#/definitions/message" } },
"groups": { "type": "array", "items": { "$ref": "#/definitions/testcase" } },
"data": { "$ref": "#/definitions/data" }
}
},
"testcase": {
"type": "object",
"description": "Node at depth 3 in the test hierarchy that provides an evaluation on tests.",
"required": ["accepted"],
"properties": {
"accepted": { "$ref": "#/definitions/accepted" },
"description": { "$ref": "#/definitions/message" },
"tests": { "type": "array", "items": { "$ref": "#/definitions/test" } },
"messages": { "type": "array", "items": { "$ref": "#/definitions/message" } }
}
},
"test": {
"type": "object",
"description": "Node at depth 4 (leaf) in the test hierarchy, providing an output diff.",
"required": ["accepted"],
"properties": {
"accepted": { "$ref": "#/definitions/accepted" },
"description": { "$ref": "#/definitions/message" },
"generated": { "type": "string" },
"expected": { "type": "string" },
"format": { "$ref": "#/definitions/test-format" },
"messages": { "type": "array", "items": { "$ref": "#/definitions/message" } }
}
},
"message": {
"type": ["string", "object"],
"description": "Possibly formatted string as a message to (some) users.",
"required": ["format", "description"],
"properties": {
"format": { "$ref": "#/definitions/message-format" },
"description": { "$ref": "#/definitions/description" },
"permission": { "$ref": "#/definitions/permission" }
}
},
"annotation": {
"type": "object",
"description": "An annotation on the source code.",
"required": ["row", "text", "type"],
"properties": {
"row": { "$ref": "#/definitions/index" },
"column": { "$ref": "#/definitions/index" },
"text": { "type": "string" },
"type": { "$ref": "#/definitions/severity" },
"rows": { "$ref": "#/definitions/index" },
"columns": { "$ref": "#/definitions/index" },
"externalUrl": { "type": "string" }
}
},
"test-format": {
"type": "string",
"description": "Indicates how to diff and show the test output (defaults to 'text').",
"enum": [
"text",
"csv"
]
},
"message-format": {
"type": "string",
"description": "Either 'plain' (or 'text'), 'html' (formatted), 'markdown' (formatted), 'callout' (formatted) (or variants 'callout-info', 'callout-warning', 'callout-danger'), 'code' or any programming language (highlighted). Note that the HTML output is sanitised to prevent XSS issues. JavaScript, for example, is not allowed, but most other tags should work."
},
"permission": {
"type": "string",
"description": "To which level of user this message is visible.",
"enum": [
"student",
"staff",
"zeus"
]
},
"badgeCount": {
"type": "number",
"description": "Indicates the number of issues in this tab",
"minimum": 0
},
"description": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"compilation error",
"runtime error",
"memory limit exceeded",
"time limit exceeded",
"output limit exceeded",
"wrong", "wrong answer",
"correct", "correct answer",
"internal error"
]
},
"accepted": {
"type": "boolean"
},
"index": {
"type": "number",
"description": "A zero-based index.",
"minimum": 0
},
"severity": {
"type": "string",
"enum": ["error", "warning", "info"]
},
"data": {
"type": "object",
"description": "Debug data that can be used to debug the test case with the python tutor.",
"properties": {
"statements": { "type": "string", "description": "The statements that should be executed to mimic this testcase." },
"stdin": { "type": "string", "description": "The input that should be used to mimic this testcase." }
}
}
}
}