From 4df05911a28e32a6772f72b6967df2bd09f95e67 Mon Sep 17 00:00:00 2001 From: Marco Donadoni Date: Wed, 26 Jun 2024 12:09:45 +0200 Subject: [PATCH] fix(get_workflow_specification): avoid returning null parameters (#689) Closes reanahub/reana-client#718 --- reana_server/rest/workflows.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reana_server/rest/workflows.py b/reana_server/rest/workflows.py index 231118cc..f228ee22 100644 --- a/reana_server/rest/workflows.py +++ b/reana_server/rest/workflows.py @@ -765,7 +765,8 @@ def get_workflow_specification(workflow_id_or_name, user): # noqa jsonify( { "specification": workflow.reana_specification, - "parameters": workflow.input_parameters, + # `input_parameters` can be null, if so return an empty dict + "parameters": workflow.input_parameters or {}, } ), 200,