correct pipelines json

master
Martin Polanka 7 years ago
parent 001d9a3be0
commit e9123841e7

@ -203,6 +203,8 @@ tests:
## Pipeline
Pipelines are sent to clients in JSON format and are stored in API in corresponding YAML with the same structure.
Mandatory items are bold, optional italic, description of items follows:
* **${implicit list of boxes}** - ...
@ -218,37 +220,37 @@ Example:
{
"name":"source",
"portsIn":[],
"portsOut":[ "source_file" => "source_file" ],
"portsOut":[{ "source_file":"source_file" }],
"type":"data"
},
{
"name":"test",
"portsIn":[],
"portsOut":[
"test_file" => "test_file",
"expected_output" => "expected_output"
],
"portsOut":[{
"test_file":"test_file",
"expected_output":"expected_output"
}],
"type":"data"
},
{
"name":"compilation",
"portsIn":[ "input_file" => "source_file" ],
"portsOut":[ "output_file" => "binary_file" ],
"portsIn":[{ "input_file":"source_file" }],
"portsOut":[{ "output_file":"binary_file" }],
"type":"compilation"
},
{
"name":"run",
"portsIn":[ "binary_file" => "binary_file" ],
"portsOut":[ "output_file" => "actual_output" ],
"portsIn":[{ "binary_file":"binary_file" }],
"portsOut":[{ "output_file":"actual_output" }],
"type":"execution"
},
{
"name":"judge",
"portsIn":[
"actual_output" => "actual_output",
"expected_output" => "expected_output"
],
"portsOut":[ "score" => "score" ],
"portsIn":[{
"actual_output":"actual_output",
"expected_output":"expected_output"
}],
"portsOut":[{ "score":"score" }],
"type":"evaluation"
}
]

Loading…
Cancel
Save