fix: add response_model to tasks_interaction

This is required for output validation and for the mock server.
This commit is contained in:
Jack Michaud
2023-01-01 10:05:34 -05:00
committed by Andreas Köpf
parent 898113ef8d
commit e15e208b20
+1 -1
View File
@@ -204,7 +204,7 @@ def tasks_acknowledge_failure(
raise OasstError("Failed to not acknowledge task.", OasstErrorCode.TASK_NACK_FAILED)
@router.post("/interaction")
@router.post("/interaction", response_model=protocol_schema.TaskDone)
def tasks_interaction(
*,
db: Session = Depends(deps.get_db),