diff --git a/calm/dsl/decompile/task.py b/calm/dsl/decompile/task.py index 13fad02d..28bef338 100644 --- a/calm/dsl/decompile/task.py +++ b/calm/dsl/decompile/task.py @@ -116,6 +116,9 @@ def render_task_template( user_attrs["response_paths"] = attrs.get("response_paths", {}) method = attrs["method"] + if (method == "POST" or method == "PUT") and not cls.attrs["request_body"]: + cls.attrs["request_body"] = {} + if method == "GET": schema_file = "task_http_get.py.jinja2"