From b28ceb86591ea06138f6749545ad2839ac143169 Mon Sep 17 00:00:00 2001 From: aronmal Date: Sun, 11 Feb 2024 20:57:48 +0100 Subject: [PATCH] Fix: Mistakes in openapi specs --- public/api/specs/liljudd.json | 38 ++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/public/api/specs/liljudd.json b/public/api/specs/liljudd.json index 743d573..2b35d6c 100644 --- a/public/api/specs/liljudd.json +++ b/public/api/specs/liljudd.json @@ -22,7 +22,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/guildConfig" + "$ref": "#/components/schemas/bootConfig" } } } @@ -382,6 +382,20 @@ }, "components": { "schemas": { + "bootConfig": { + "type": "object", + "properties": { + "guilds": { + "type": "array", + "items": { + "$ref": "#/components/schemas/guildConfig" + } + }, + "accessToken": { + "type": "string" + } + } + }, "guildConfig": { "type": "object", "properties": { @@ -506,17 +520,17 @@ "type": "array", "items": { "type": "string", - "format": "varchar(20)", - "example": [ - "1234567890123456789", - "1234567890123456789", - "1234567890123456789", - "1234567890123456789", - "1234567890123456789", - "1234567890123456789", - "1234567890123456789" - ] - } + "format": "varchar(20)" + }, + "example": [ + "1234567890123456789", + "1234567890123456789", + "1234567890123456789", + "1234567890123456789", + "1234567890123456789", + "1234567890123456789", + "1234567890123456789" + ] } } }