diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-07-31 21:08:10 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-07-31 21:08:10 +0900 |
| commit | 9e634d64153b2d6dff86cafd1765db02a1224af4 (patch) | |
| tree | 827de8bbf3d1eee517fac018daf53ac097941f17 /backend/api/generated.go | |
| parent | 7a06def8085b432994dc054037183795e7ec25a0 (diff) | |
| parent | 8478e1d057053216410dccc03b3aff9a73a25968 (diff) | |
| download | phperkaigi-2025-albatross-9e634d64153b2d6dff86cafd1765db02a1224af4.tar.gz phperkaigi-2025-albatross-9e634d64153b2d6dff86cafd1765db02a1224af4.tar.zst phperkaigi-2025-albatross-9e634d64153b2d6dff86cafd1765db02a1224af4.zip | |
Merge branch 'feat/openapi-nullable'
Diffstat (limited to 'backend/api/generated.go')
| -rw-r--r-- | backend/api/generated.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/api/generated.go b/backend/api/generated.go index 2873ad2..a6a5f1e 100644 --- a/backend/api/generated.go +++ b/backend/api/generated.go @@ -17,6 +17,7 @@ import ( "github.com/getkin/kin-openapi/openapi3" "github.com/labstack/echo/v4" + "github.com/oapi-codegen/nullable" "github.com/oapi-codegen/runtime" strictecho "github.com/oapi-codegen/runtime/strictmiddleware/echo" ) @@ -99,7 +100,7 @@ type GamePlayerMessageS2CExecResult struct { // GamePlayerMessageS2CExecResultPayload defines model for GamePlayerMessageS2CExecResultPayload. type GamePlayerMessageS2CExecResultPayload struct { - Score *int `json:"score"` + Score nullable.Nullable[int] `json:"score"` Status GamePlayerMessageS2CExecResultPayloadStatus `json:"status"` } @@ -159,7 +160,7 @@ type GameWatcherMessageS2CExecResult struct { // GameWatcherMessageS2CExecResultPayload defines model for GameWatcherMessageS2CExecResultPayload. type GameWatcherMessageS2CExecResultPayload struct { PlayerId int `json:"player_id"` - Score *int `json:"score"` + Score nullable.Nullable[int] `json:"score"` Status GameWatcherMessageS2CExecResultPayloadStatus `json:"status"` Stderr string `json:"stderr"` Stdout string `json:"stdout"` |
