@@ -234,7 +234,7 @@ def get_request_body_api():
234234 default = []),
235235 'edges' : openapi .Schema (type = openapi .TYPE_ARRAY , items = openapi .Schema (type = openapi .TYPE_OBJECT ),
236236 title = _ ('Connection List' ), description = _ ("Connection List" ),
237- default = {} ),
237+ default = [] ),
238238
239239 }
240240 )
@@ -324,7 +324,8 @@ def get_request_body_api():
324324 return openapi .Schema (
325325 type = openapi .TYPE_OBJECT ,
326326 required = ['name' , 'desc' , 'model_id' , 'dialogue_number' , 'dataset_setting' , 'model_setting' ,
327- 'problem_optimization' , 'stt_model_enable' , 'stt_model_enable' , 'tts_type' ],
327+ 'problem_optimization' , 'stt_model_enable' , 'stt_model_enable' , 'tts_type' ,
328+ 'work_flow' ],
328329 properties = {
329330 'name' : openapi .Schema (type = openapi .TYPE_STRING , title = _ ("Application Name" ),
330331 description = _ ("Application Name" )),
@@ -361,7 +362,8 @@ def get_request_body_api():
361362 'tts_model_enable' : openapi .Schema (type = openapi .TYPE_STRING , title = _ ("Is text-to-speech enabled" ),
362363 description = _ ("Is text-to-speech enabled" )),
363364 'tts_type' : openapi .Schema (type = openapi .TYPE_STRING , title = _ ("Text-to-speech type" ),
364- description = _ ("Text-to-speech type" ))
365+ description = _ ("Text-to-speech type" )),
366+ 'work_flow' : ApplicationApi .WorkFlow .get_request_body_api (),
365367 }
366368 )
367369
@@ -432,4 +434,4 @@ def get_request_body_api():
432434 'text' : openapi .Schema (type = openapi .TYPE_STRING , title = _ ("Text" ),
433435 description = _ ("Text" )),
434436 }
435- )
437+ )
0 commit comments