Make 'inputs' property in TaskConfig no longer required.
This commit is contained in:
@@ -207,7 +207,7 @@ public class PipelineYmlSchema implements YamlSchema {
|
||||
addProp(task, "platform", t_platform).isRequired(true);
|
||||
addProp(task, "image_resource", t_image_resource);
|
||||
addProp(task, "image", t_ne_string);
|
||||
addProp(task, "inputs", f.yseq(t_input)).isRequired(true);
|
||||
addProp(task, "inputs", f.yseq(t_input));
|
||||
addProp(task, "outputs", f.yseq(t_output));
|
||||
addProp(task, "run", t_command).isRequired(true);
|
||||
addProp(task, "params", t_string_params);
|
||||
|
||||
@@ -568,7 +568,7 @@ public class ConcourseEditorTest {
|
||||
{
|
||||
List<Diagnostic> problems = editor.assertProblems(
|
||||
"config|Only one of [config, file]",
|
||||
"{}|[inputs, platform, run] are required",
|
||||
"{}|[platform, run] are required",
|
||||
"{}|One of [image_resource, image]",
|
||||
"file|Only one of [config, file]"
|
||||
);
|
||||
@@ -2242,7 +2242,7 @@ public class ConcourseEditorTest {
|
||||
editor = harness.newEditor(LanguageIds.CONCOURSE_TASK,
|
||||
"image: some-image"
|
||||
);
|
||||
editor.assertProblems("image: some-image|[inputs, platform, run] are required");
|
||||
editor.assertProblems("image: some-image|[platform, run] are required");
|
||||
|
||||
editor = harness.newEditor(LanguageIds.CONCOURSE_TASK,
|
||||
"platform: a-platform\n" +
|
||||
|
||||
Reference in New Issue
Block a user