From 4649f52a83726fe78745cd3ac8e891f54ce1df86 Mon Sep 17 00:00:00 2001 From: "Nelly (automation bot)" <> Date: Thu, 3 Aug 2023 13:45:55 +0000 Subject: [PATCH] Automated spec update --- specs/openapi.json | 45 +++++++++++++++++++++++++++++++++++--- specs/openapi_preview.json | 45 +++++++++++++++++++++++++++++++++++--- 2 files changed, 84 insertions(+), 6 deletions(-) diff --git a/specs/openapi.json b/specs/openapi.json index 566f4c5..e792e76 100644 --- a/specs/openapi.json +++ b/specs/openapi.json @@ -417,9 +417,31 @@ }, "patch": { "operationId": "update_my_user", + "requestBody": { + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/BotAccountPatchRequestPartial" + } + ], + "x-discord-union": "oneOf" + } + } + }, + "required": true + }, "responses": { "200": { - "description": "200 response for update_my_user" + "description": "200 response for update_my_user", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserPIIResponse" + } + } + } }, "4XX": { "$ref": "#/components/responses/ClientErrorResponse" @@ -9125,7 +9147,7 @@ ] }, "minItems": 1, - "maxItems": 1521 + "maxItems": 5 } }, "required": [ @@ -12989,6 +13011,23 @@ "metadata" ] }, + "BotAccountPatchRequestPartial": { + "type": "object", + "properties": { + "username": { + "type": "string", + "minLength": 2, + "maxLength": 32 + }, + "avatar": { + "type": [ + "string", + "null" + ], + "contentEncoding": "base64" + } + } + }, "Button": { "type": "object", "properties": { @@ -14934,7 +14973,7 @@ }, "name": { "type": "string", - "maxLength": 152133 + "maxLength": 32 }, "animated": { "type": [ diff --git a/specs/openapi_preview.json b/specs/openapi_preview.json index 8c31be0..4c8334c 100644 --- a/specs/openapi_preview.json +++ b/specs/openapi_preview.json @@ -417,9 +417,31 @@ }, "patch": { "operationId": "update_my_user", + "requestBody": { + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/BotAccountPatchRequestPartial" + } + ], + "x-discord-union": "oneOf" + } + } + }, + "required": true + }, "responses": { "200": { - "description": "200 response for update_my_user" + "description": "200 response for update_my_user", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserPIIResponse" + } + } + } }, "4XX": { "$ref": "#/components/responses/ClientErrorResponse" @@ -9125,7 +9147,7 @@ ] }, "minItems": 1, - "maxItems": 1521 + "maxItems": 5 } }, "required": [ @@ -12989,6 +13011,23 @@ "metadata" ] }, + "BotAccountPatchRequestPartial": { + "type": "object", + "properties": { + "username": { + "type": "string", + "minLength": 2, + "maxLength": 32 + }, + "avatar": { + "type": [ + "string", + "null" + ], + "contentEncoding": "base64" + } + } + }, "Button": { "type": "object", "properties": { @@ -14938,7 +14977,7 @@ }, "name": { "type": "string", - "maxLength": 152133 + "maxLength": 32 }, "animated": { "type": [