From e9123841e7d3f13bac891880ce62cf29624d1a4e Mon Sep 17 00:00:00 2001 From: Martin Polanka Date: Thu, 6 Jul 2017 10:20:31 +0200 Subject: [PATCH] correct pipelines json --- Exercise-Configuration.md | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/Exercise-Configuration.md b/Exercise-Configuration.md index 4653bdf..526df96 100644 --- a/Exercise-Configuration.md +++ b/Exercise-Configuration.md @@ -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" } ]