about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArun Isaac2025-11-27 00:49:19 +0000
committerArun Isaac2025-11-27 00:49:19 +0000
commitce7b724fa4718328e319f518ca899200bf292f5f (patch)
treef066f413a88efc515af7a9aa74a28e1831fd379a
parent0ddb39f71db5074dc46984552f21c23a1248b904 (diff)
downloadravanan-ce7b724fa4718328e319f518ca899200bf292f5f.tar.gz
ravanan-ce7b724fa4718328e319f518ca899200bf292f5f.tar.lz
ravanan-ce7b724fa4718328e319f518ca899200bf292f5f.zip
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.
-rw-r--r--ravanan/workflow.scm5
1 files changed, 4 insertions, 1 deletions
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