Merge pull request 'feat(solution): update solution fields' (#1) from feature/GAT-93-solution-fileds-update into main

Reviewed-on: #1
Reviewed-by: OXYgen <oxygen@noreply.localhost>
Reviewed-by: dragonmuffin <dragonmuffin@noreply.localhost>
Reviewed-by: Holoti <holoti@noreply.localhost>
This commit is contained in:
Vyacheslav Birin 2025-04-02 16:00:17 +00:00
commit 02a0010431

View file

@ -874,14 +874,24 @@ components:
type: object
required:
- id
- task_id
- contest_id
- participant_id
- participant_name
- state
- score
- penalty
- total_score
- time_stat
- memory_stat
- language
- task_id
- task_position
- task_title
- contest_id
- contest_title
- updated_at
- created_at
properties:
@ -889,18 +899,15 @@ components:
type: integer
format: int32
example: 1
task_id:
type: integer
format: int32
example: 1
contest_id:
type: integer
format: int32
example: 1
participant_id:
type: integer
format: int32
example: 1
participant_name:
type: string
example: "user123"
state:
type: integer
format: int32
@ -913,14 +920,39 @@ components:
type: integer
format: int32
example: 28
total_score:
time_stat:
type: integer
format: int32
example: 100
example: 1000
memory_stat:
type: integer
format: int32
example: 256
language:
type: integer
format: int32
example: 1
task_id:
type: integer
format: int32
example: 1
task_position:
type: integer
format: int32
example: 1
task_title:
type: string
example: "Task title"
contest_id:
type: integer
format: int32
example: 1
contest_title:
type: string
example: "Contest title"
updated_at:
type: string
format: date-time
@ -931,14 +963,26 @@ components:
type: object
required:
- id
- task_id
- participant_id
- participant_name
- solution
- state
- score
- penalty
- total_score
- solution
- time_stat
- memory_stat
- language
- task_id
- task_position
- task_title
- contest_id
- contest_title
- updated_at
- created_at
properties:
@ -946,14 +990,19 @@ components:
type: integer
format: int32
example: 1
task_id:
type: integer
format: int32
example: 1
participant_id:
type: integer
format: int32
example: 1
participant_name:
type: string
example: "user123"
solution:
type: string
example: 'print("Hello, world!")'
state:
type: integer
format: int32
@ -966,17 +1015,39 @@ components:
type: integer
format: int32
example: 28
total_score:
time_stat:
type: integer
format: int32
example: 100
example: 1000
memory_stat:
type: integer
format: int32
example: 256
language:
type: integer
format: int32
example: 1
solution:
task_id:
type: integer
format: int32
example: 1
task_position:
type: integer
format: int32
example: 1
task_title:
type: string
example: 'print("Hello, world!")'
example: "Task title"
contest_id:
type: integer
format: int32
example: 1
contest_title:
type: string
example: "Contest title"
updated_at:
type: string
format: date-time