Skip to content

Commit c2a82f9

Browse files
committed
fix(api): 🐛 set correct responses schema
1 parent 66e2565 commit c2a82f9

File tree

1 file changed

+5
-57
lines changed

1 file changed

+5
-57
lines changed

api/openapi.yaml

Lines changed: 5 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ paths:
175175
content:
176176
application/json:
177177
schema:
178-
$ref: '#/components/schemas/CreateUserResponse'
178+
$ref: '#/components/schemas/UserResponse'
179179
'400':
180180
description: Bad request
181181
'500':
@@ -322,7 +322,7 @@ paths:
322322
content:
323323
application/json:
324324
schema:
325-
$ref: '#/components/schemas/CreateGameResponse'
325+
$ref: '#/components/schemas/GameResponse'
326326
'400':
327327
description: Bad request
328328
'500':
@@ -455,7 +455,7 @@ paths:
455455
content:
456456
application/json:
457457
schema:
458-
$ref: '#/components/schemas/CreateTeamResponse'
458+
$ref: '#/components/schemas/TeamResponse'
459459
'400':
460460
description: Failed request
461461
content:
@@ -793,7 +793,7 @@ paths:
793793
content:
794794
application/json:
795795
schema:
796-
$ref: '#/components/schemas/CreateServiceResponse'
796+
$ref: '#/components/schemas/ServiceResponse'
797797
'/api/v1/services/{serviceId}':
798798
get:
799799
tags:
@@ -1034,58 +1034,6 @@ components:
10341034
format: uuid
10351035
example: 81e17cb6-5c46-4934-b6d5-5c8356712cb6
10361036
description: Unique identifier for the result entry
1037-
CreateUserResponse:
1038-
type: object
1039-
required:
1040-
- data
1041-
- id
1042-
properties:
1043-
data:
1044-
type: string
1045-
example: User created successfully
1046-
id:
1047-
type: string
1048-
format: uuid
1049-
example: 81e17cb6-5c46-4934-b6d5-5c8356712cb6
1050-
CreateTeamResponse:
1051-
type: object
1052-
required:
1053-
- data
1054-
- id
1055-
properties:
1056-
data:
1057-
type: string
1058-
example: Team created successfully
1059-
id:
1060-
type: string
1061-
format: uuid
1062-
example: 81e17cb6-5c46-4934-b6d5-5c8356712cb6
1063-
CreateServiceResponse:
1064-
type: object
1065-
required:
1066-
- data
1067-
- id
1068-
properties:
1069-
data:
1070-
type: string
1071-
example: Service created successfully
1072-
id:
1073-
type: string
1074-
format: uuid
1075-
example: 81e17cb6-5c46-4934-b6d5-5c8356712cb6
1076-
CreateGameResponse:
1077-
type: object
1078-
required:
1079-
- data
1080-
- id
1081-
properties:
1082-
data:
1083-
type: string
1084-
example: Game created successfully
1085-
id:
1086-
type: string
1087-
format: uuid
1088-
example: 81e17cb6-5c46-4934-b6d5-5c8356712cb6
10891037
CreateResultResponse:
10901038
type: object
10911039
required:
@@ -1221,8 +1169,8 @@ components:
12211169
description: A brief description of the game
12221170
GameResponse:
12231171
required:
1224-
- end_time
12251172
- id
1173+
- end_time
12261174
- start_time
12271175
type: object
12281176
properties:

0 commit comments

Comments
 (0)