From 673f84ae7864e22023f7a614e496ddc7706ff4c8 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 01:10:04 +0300 Subject: [PATCH] feat: added types in swagger --- services/backend/api/v1/competition/schemas.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/backend/api/v1/competition/schemas.py b/services/backend/api/v1/competition/schemas.py index 079baab..0539b5b 100644 --- a/services/backend/api/v1/competition/schemas.py +++ b/services/backend/api/v1/competition/schemas.py @@ -8,6 +8,8 @@ from apps.competition.models import Competition, State class CompetitionOut(ModelSchema): id: UUID + type: Literal["edu", "competitive"] + participation_type: Literal["solo"] class Meta: model = Competition