Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

feat(DraftWorkflowApi): Requires environment_variables in DraftWorkflowApi (#19849)

-LAN-e0e8cd6ca305
diff --git a/api/controllers/console/app/workflow.py b/api/controllers/console/app/workflow.py
index 0c13adce9b5..cbbdd324baf 100644
--- a/api/controllers/console/app/workflow.py
+++ b/api/controllers/console/app/workflow.py
@@ -81,8 +81,7 @@ class DraftWorkflowApi(Resource):
parser.add_argument("graph", type=dict, required=True, nullable=False, location="json")
parser.add_argument("features", type=dict, required=True, nullable=False, location="json")
parser.add_argument("hash", type=str, required=False, location="json")
- # TODO: set this to required=True after frontend is updated
- parser.add_argument("environment_variables", type=list, required=False, location="json")
+ parser.add_argument("environment_variables", type=list, required=True, location="json")
parser.add_argument("conversation_variables", type=list, required=False, location="json")
args = parser.parse_args()
elif "text/plain" in content_type: