feat(DraftWorkflowApi): Requires environment_variables in DraftWorkflowApi (#19849)
Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
e7659ecd9d
commit
e0e8cd6ca3
1 changed files with 1 additions and 2 deletions
|
|
@ -81,8 +81,7 @@ class DraftWorkflowApi(Resource):
|
||||||
parser.add_argument("graph", type=dict, required=True, nullable=False, location="json")
|
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("features", type=dict, required=True, nullable=False, location="json")
|
||||||
parser.add_argument("hash", type=str, required=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=True, location="json")
|
||||||
parser.add_argument("environment_variables", type=list, required=False, location="json")
|
|
||||||
parser.add_argument("conversation_variables", type=list, required=False, location="json")
|
parser.add_argument("conversation_variables", type=list, required=False, location="json")
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
elif "text/plain" in content_type:
|
elif "text/plain" in content_type:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue