From bd27161e1dfe9d33ea1996147c6287efbca87ee9 Mon Sep 17 00:00:00 2001 From: Lukas Bindreiter Date: Tue, 3 Feb 2026 11:54:42 +0100 Subject: [PATCH] Backward compatible way of specifying optionality for subtasks --- apis/workflows/v1/core.proto | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apis/workflows/v1/core.proto b/apis/workflows/v1/core.proto index e20c1a3..9c4efd5 100644 --- a/apis/workflows/v1/core.proto +++ b/apis/workflows/v1/core.proto @@ -251,7 +251,8 @@ message TaskSubmissionGroup { option (buf.validate.message).cel = { id: "task_submission_group.optional_size_match" message: "The number of optional values must match the number of inputs." - expression: "this.inputs.size() == this.optional_values.size()" + // we allow an empty list as well, in which case we default to all false, important for backwards compatibility + expression: "this.optional_values.size() == 0 || this.inputs.size() == this.optional_values.size()" }; // The indices of the groups that this submission group depends on. Indices refer to the groups field of the