correct pipelines json

master
Martin Polanka 7 years ago
parent 001d9a3be0
commit e9123841e7

@ -203,6 +203,8 @@ tests:
## Pipeline ## 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: Mandatory items are bold, optional italic, description of items follows:
* **${implicit list of boxes}** - ... * **${implicit list of boxes}** - ...
@ -218,37 +220,37 @@ Example:
{ {
"name":"source", "name":"source",
"portsIn":[], "portsIn":[],
"portsOut":[ "source_file" => "source_file" ], "portsOut":[{ "source_file":"source_file" }],
"type":"data" "type":"data"
}, },
{ {
"name":"test", "name":"test",
"portsIn":[], "portsIn":[],
"portsOut":[ "portsOut":[{
"test_file" => "test_file", "test_file":"test_file",
"expected_output" => "expected_output" "expected_output":"expected_output"
], }],
"type":"data" "type":"data"
}, },
{ {
"name":"compilation", "name":"compilation",
"portsIn":[ "input_file" => "source_file" ], "portsIn":[{ "input_file":"source_file" }],
"portsOut":[ "output_file" => "binary_file" ], "portsOut":[{ "output_file":"binary_file" }],
"type":"compilation" "type":"compilation"
}, },
{ {
"name":"run", "name":"run",
"portsIn":[ "binary_file" => "binary_file" ], "portsIn":[{ "binary_file":"binary_file" }],
"portsOut":[ "output_file" => "actual_output" ], "portsOut":[{ "output_file":"actual_output" }],
"type":"execution" "type":"execution"
}, },
{ {
"name":"judge", "name":"judge",
"portsIn":[ "portsIn":[{
"actual_output" => "actual_output", "actual_output":"actual_output",
"expected_output" => "expected_output" "expected_output":"expected_output"
], }],
"portsOut":[ "score" => "score" ], "portsOut":[{ "score":"score" }],
"type":"evaluation" "type":"evaluation"
} }
] ]

Loading…
Cancel
Save