From 7a4171d021a709e0af1e0e13830514c67ec97702 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 3 Aug 2024 22:18:31 +0900 Subject: feat: partially implement submit action --- openapi.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'openapi.yaml') 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' -- cgit v1.2.3-70-g09d2