aboutsummaryrefslogtreecommitdiffhomepage
path: root/openapi.yaml
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-03 22:18:31 +0900
committernsfisis <nsfisis@gmail.com>2024-08-03 22:18:31 +0900
commit7a4171d021a709e0af1e0e13830514c67ec97702 (patch)
treebdef0421d29b9ee737e869677166d4b3ebdadb0f /openapi.yaml
parentf70d6eed9f2c519aed030c9dbda99ed0435991a0 (diff)
downloadphperkaigi-2025-albatross-7a4171d021a709e0af1e0e13830514c67ec97702.tar.gz
phperkaigi-2025-albatross-7a4171d021a709e0af1e0e13830514c67ec97702.tar.zst
phperkaigi-2025-albatross-7a4171d021a709e0af1e0e13830514c67ec97702.zip
feat: partially implement submit action
Diffstat (limited to 'openapi.yaml')
-rw-r--r--openapi.yaml20
1 files changed, 20 insertions, 0 deletions
diff --git a/openapi.yaml b/openapi.yaml
index 683fadf..d04951d 100644
--- a/openapi.yaml
+++ b/openapi.yaml
@@ -427,6 +427,7 @@ components:
- $ref: '#/components/schemas/GamePlayerMessageC2SEntry'
- $ref: '#/components/schemas/GamePlayerMessageC2SReady'
- $ref: '#/components/schemas/GamePlayerMessageC2SCode'
+ - $ref: '#/components/schemas/GamePlayerMessageC2SSubmit'
GamePlayerMessageC2SEntry:
type: object
properties:
@@ -462,6 +463,25 @@ components:
example: "print('Hello, world!')"
required:
- code
+ GamePlayerMessageC2SSubmit:
+ type: object
+ properties:
+ type:
+ type: string
+ const: "player:c2s:submit"
+ data:
+ $ref: '#/components/schemas/GamePlayerMessageC2SSubmitPayload'
+ required:
+ - type
+ - data
+ GamePlayerMessageC2SSubmitPayload:
+ type: object
+ properties:
+ code:
+ type: string
+ example: "print('Hello, world!')"
+ required:
+ - code
GameWatcherMessage:
oneOf:
- $ref: '#/components/schemas/GameWatcherMessageS2C'