From 8c88233d45798c7f7360a0cd464fb8bd2129f3c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=A1=D1=83=D0=BC?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Sun, 2 Mar 2025 16:59:28 +0300 Subject: [PATCH] added task type literal for swagger --- services/backend/api/v1/task/schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/backend/api/v1/task/schemas.py b/services/backend/api/v1/task/schemas.py index ef00e01..9e73c37 100644 --- a/services/backend/api/v1/task/schemas.py +++ b/services/backend/api/v1/task/schemas.py @@ -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", ]