added task type literal for swagger

This commit is contained in:
Андрей Сумин
2025-03-02 16:59:28 +03:00
parent b30f0c7df2
commit 8c88233d45
+1 -1
View File
@@ -12,6 +12,7 @@ from apps.task.models import (
class TaskOutSchema(ModelSchema):
status: Literal["sent", "checked", "checking", "not_submitted"] = None
type: Literal["input", "checker", "review"] = None
@staticmethod
def resolve_status(
@@ -30,7 +31,6 @@ class TaskOutSchema(ModelSchema):
"competition",
"title",
"description",
"type",
"in_competition_position",
"points",
]