diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-11 22:15:36 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-11 22:54:29 +0900 |
| commit | 34d61fcc7035ebd7ffb636d13308166c90b474b2 (patch) | |
| tree | cf120caf0b1d27b4067b1e1133b787618906d8fc /openapi | |
| parent | c7599c74722864d54c96a3f3d52e28290abb9eac (diff) | |
| download | phperkaigi-2025-albatross-34d61fcc7035ebd7ffb636d13308166c90b474b2.tar.gz phperkaigi-2025-albatross-34d61fcc7035ebd7ffb636d13308166c90b474b2.tar.zst phperkaigi-2025-albatross-34d61fcc7035ebd7ffb636d13308166c90b474b2.zip | |
feat: simplify starting procedure
Diffstat (limited to 'openapi')
| -rw-r--r-- | openapi/api-server.yaml | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/openapi/api-server.yaml b/openapi/api-server.yaml index 16dd7c5..826c4ba 100644 --- a/openapi/api-server.yaml +++ b/openapi/api-server.yaml @@ -199,9 +199,7 @@ components: example: "closed" enum: - closed - - waiting_entries - - waiting_start - - prepare + - waiting - starting - gaming - finished @@ -268,17 +266,8 @@ components: - $ref: '#/components/schemas/GamePlayerMessageC2S' GamePlayerMessageS2C: oneOf: - - $ref: '#/components/schemas/GamePlayerMessageS2CPrepare' - $ref: '#/components/schemas/GamePlayerMessageS2CStart' - $ref: '#/components/schemas/GamePlayerMessageS2CExecResult' - GamePlayerMessageS2CPrepare: - type: object - properties: - type: - type: string - const: "player:s2c:prepare" - required: - - type GamePlayerMessageS2CStart: type: object properties: @@ -331,26 +320,8 @@ components: - score GamePlayerMessageC2S: oneOf: - - $ref: '#/components/schemas/GamePlayerMessageC2SEntry' - - $ref: '#/components/schemas/GamePlayerMessageC2SReady' - $ref: '#/components/schemas/GamePlayerMessageC2SCode' - $ref: '#/components/schemas/GamePlayerMessageC2SSubmit' - GamePlayerMessageC2SEntry: - type: object - properties: - type: - type: string - const: "player:c2s:entry" - required: - - type - GamePlayerMessageC2SReady: - type: object - properties: - type: - type: string - const: "player:c2s:ready" - required: - - type GamePlayerMessageC2SCode: type: object properties: |
