Files
codeocean/lib/runner/backend-output.schema.json
Maximilian Paß 72009667a6 Fix Poseidon JSON schema
that included a wrong usage of the `required` attribute.

See #1914 and openHPI/poseidon#456.
2023-09-19 12:52:53 +02:00

43 lines
811 B
JSON

{
"$schema": "http://json-schema.org/schema#",
"title": "event",
"type": "object",
"oneOf": [
{
"properties": {
"type": {
"const": "exit"
},
"data": {
"type": "integer",
"minimum": 0,
"maximum": 255
}
},
"required": ["type", "data"],
"additionalProperties": false
},
{
"properties": {
"type": {
"enum": [ "stdout", "stderr", "error" ]
},
"data": {
"type": "string"
}
},
"required": ["type", "data"],
"additionalProperties": false
},
{
"properties": {
"type": {
"enum": [ "start", "timeout" ]
}
},
"required": ["type"],
"additionalProperties": false
}
]
}