From ce7b724fa4718328e319f518ca899200bf292f5f Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Thu, 27 Nov 2025 00:49:19 +0000 Subject: workflow: Do not require user to provide inputs with a default. It is ok for the user to not provide inputs that have a default value. --- ravanan/workflow.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ravanan/workflow.scm b/ravanan/workflow.scm index 1d4c739..e7dbcb5 100644 --- a/ravanan/workflow.scm +++ b/ravanan/workflow.scm @@ -645,7 +645,10 @@ area need not be shared. @var{store} is the path to the shared ravanan store. (vector-for-each (lambda (formal-input) (let* ((id (assoc-ref formal-input "id")) (type (assoc-ref formal-input "type")) - (input-value (assoc-ref inputs id))) + ;; Either an input is provided or we have a + ;; default. + (input-value (or (assoc-ref inputs id) + (assoc-ref formal-input "default")))) (unless input-value (user-error "Input `~a' not provided" id)) (unless (match-type input-value -- cgit 1.4.1