Skip to content

Commit 71447ea

Browse files
committed
Fixed openapi.yaml and re generated stubs
1 parent ba10d1c commit 71447ea

21 files changed

Lines changed: 305 additions & 234 deletions

backend/generated/.openapi-generator/FILES

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.openapi-generator-ignore
21
Dockerfile
32
README.md
43
api/openapi.yaml
@@ -20,7 +19,6 @@ go/error.go
2019
go/helpers.go
2120
go/impl.go
2221
go/logger.go
23-
go/model__ping_get_200_response.go
2422
go/model_action.go
2523
go/model_action_input.go
2624
go/model_action_update_input.go
@@ -34,6 +32,7 @@ go/model_goal.go
3432
go/model_goal_input.go
3533
go/model_loss.go
3634
go/model_loss_input.go
35+
go/model_ping_200_response.go
3736
go/model_recurrence_pattern.go
3837
go/model_user.go
3938
go/model_user_badge.go

backend/generated/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ To see how to make this your own, look here:
1414
[README](https://openapi-generator.tech)
1515

1616
- API version: v1.0.0
17-
- Build date: 2025-06-24T23:50:01.923860+09:00[Asia/Tokyo]
17+
- Build date: 2025-06-28T22:55:01.075604+09:00[Asia/Tokyo]
1818
- Generator version: 7.13.0
1919

2020

backend/generated/api/openapi.yaml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,35 @@ servers:
99
- description: Development server
1010
url: http://localhost:8080/api/v1
1111
tags:
12-
- description: Operations related to user complexes
12+
- description: コンプレックスに関する操作
1313
name: Complexes
14-
- description: Operations related to user goals
14+
- description: 目標に関する操作
1515
name: Goals
16-
- description: Operations related to user actions
16+
- description: 行動に関する操作
1717
name: Actions
18-
- description: Operations related to badges
18+
- description: バッジに関する操作
1919
name: Badges
20-
- description: API health check
20+
- description: ユーザーが獲得したバッジに関する操作
21+
name: UserBadges
22+
- description: APIのヘルスチェック
2123
name: Health
2224
paths:
2325
/ping:
2426
get:
27+
operationId: ping
2528
responses:
2629
"200":
2730
content:
2831
application/json:
2932
schema:
30-
$ref: '#/components/schemas/_ping_get_200_response'
33+
$ref: '#/components/schemas/ping_200_response'
3134
description: Success response
3235
summary: サーバーの死活監視
3336
tags:
3437
- Health
3538
/complexes:
3639
get:
40+
operationId: getComplexes
3741
responses:
3842
"200":
3943
content:
@@ -61,6 +65,7 @@ paths:
6165
tags:
6266
- Complexes
6367
post:
68+
operationId: createComplex
6469
requestBody:
6570
content:
6671
application/json:
@@ -93,6 +98,7 @@ paths:
9398
- Complexes
9499
/complexes/{complexId}:
95100
delete:
101+
operationId: deleteComplex
96102
parameters:
97103
- description: 操作対象のコンプレックスID
98104
explode: false
@@ -125,6 +131,7 @@ paths:
125131
tags:
126132
- Complexes
127133
get:
134+
operationId: getComplex
128135
parameters:
129136
- description: 操作対象のコンプレックスID
130137
explode: false
@@ -172,6 +179,7 @@ paths:
172179
type: integer
173180
style: simple
174181
put:
182+
operationId: updateComplex
175183
parameters:
176184
- description: 操作対象のコンプレックスID
177185
explode: false
@@ -221,6 +229,7 @@ paths:
221229
- Complexes
222230
/goals:
223231
get:
232+
operationId: getGoals
224233
responses:
225234
"200":
226235
content:
@@ -248,6 +257,7 @@ paths:
248257
tags:
249258
- Goals
250259
post:
260+
operationId: createGoal
251261
requestBody:
252262
content:
253263
application/json:
@@ -286,6 +296,7 @@ paths:
286296
- Goals
287297
/goals/{goalId}:
288298
delete:
299+
operationId: deleteGoal
289300
parameters:
290301
- description: 操作対象の目標ID
291302
explode: false
@@ -316,6 +327,7 @@ paths:
316327
tags:
317328
- Goals
318329
get:
330+
operationId: getGoal
319331
parameters:
320332
- description: 操作対象の目標ID
321333
explode: false
@@ -361,6 +373,7 @@ paths:
361373
type: integer
362374
style: simple
363375
put:
376+
operationId: updateGoal
364377
parameters:
365378
- description: 操作対象の目標ID
366379
explode: false
@@ -408,6 +421,7 @@ paths:
408421
- Goals
409422
/actions:
410423
get:
424+
operationId: getActions
411425
parameters:
412426
- description: 行動を取得する対象の目標ID
413427
explode: true
@@ -454,6 +468,7 @@ paths:
454468
tags:
455469
- Actions
456470
post:
471+
operationId: createAction
457472
requestBody:
458473
content:
459474
application/json:
@@ -480,6 +495,7 @@ paths:
480495
- Actions
481496
/actions/{actionId}:
482497
delete:
498+
operationId: deleteAction
483499
parameters:
484500
- description: 操作対象の行動ID
485501
explode: false
@@ -517,6 +533,7 @@ paths:
517533
type: integer
518534
style: simple
519535
put:
536+
operationId: updateAction
520537
parameters:
521538
- description: 操作対象の行動ID
522539
explode: false
@@ -564,6 +581,7 @@ paths:
564581
- Actions
565582
/badges:
566583
get:
584+
operationId: getBadges
567585
responses:
568586
"200":
569587
content:
@@ -586,6 +604,7 @@ paths:
586604
- Badges
587605
/me/badges:
588606
get:
607+
operationId: getUserBadges
589608
responses:
590609
"200":
591610
content:
@@ -1090,7 +1109,7 @@ components:
10901109
- achieved_at
10911110
- badge
10921111
- user_id
1093-
_ping_get_200_response:
1112+
ping_200_response:
10941113
example:
10951114
message: pong
10961115
properties:

backend/generated/go.mod

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module github.com/GIT_USER_ID/GIT_REPO_ID
2+
3+
go 1.18
4+

backend/generated/go/api.go

Lines changed: 34 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)