feat(tester): extend GetContestResponse

This commit is contained in:
Vyacheslav1557 2025-03-02 00:24:47 +05:00
parent c1b7fd7a2d
commit ab113ecb9c

View file

@ -313,13 +313,105 @@ components:
id:
type: integer
format: int32
BestSolution:
type: object
required:
- id
- task_id
- participant_id
- state
- score
- penalty
- total_score
- language
- created_at
- updated_at
properties:
id:
type: integer
format: int32
task_id:
type: integer
format: int32
participant_id:
type: integer
format: int32
state:
type: integer
format: int32
score:
type: integer
format: int32
penalty:
type: integer
format: int32
total_score:
type: integer
format: int32
language:
type: integer
format: int32
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
RichTask:
type: object
required:
- id
- problem_id
- position
- title
- memory_limit
- time_limit
- created_at
- updated_at
properties:
id:
type: integer
format: int32
problem_id:
type: integer
format: int32
position:
type: integer
format: int32
title:
type: string
memory_limit:
type: integer
format: int32
time_limit:
type: integer
format: int32
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
GetContestResponse:
type: object
required:
- contest
- tasks
properties:
contest:
$ref: '#/components/schemas/Contest'
tasks:
type: array
items:
type: object
required:
- task
- best_solution
properties:
task:
$ref: '#/components/schemas/RichTask'
best_solution:
$ref: '#/components/schemas/BestSolution'
AddParticipantResponse:
type: object
required: