feat: update bot routes to match old spec

This commit is contained in:
Paul Makles
2022-03-20 18:47:58 +00:00
parent bb03b4f114
commit 3403729c16
4 changed files with 75 additions and 8 deletions
+53 -5
View File
@@ -808,7 +808,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Bot"
"$ref": "#/components/schemas/BotResponse"
}
}
}
@@ -938,10 +938,7 @@
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Bot"
}
"$ref": "#/components/schemas/OwnedBotsResponse"
}
}
}
@@ -5660,6 +5657,57 @@
}
}
},
"BotResponse": {
"title": "Bot Response",
"type": "object",
"required": [
"bot",
"user"
],
"properties": {
"bot": {
"description": "Bot object",
"allOf": [
{
"$ref": "#/components/schemas/Bot"
}
]
},
"user": {
"description": "User object",
"allOf": [
{
"$ref": "#/components/schemas/User"
}
]
}
}
},
"OwnedBotsResponse": {
"title": "Owned Bots Response",
"description": "Both lists are sorted by their IDs.",
"type": "object",
"required": [
"bots",
"users"
],
"properties": {
"bots": {
"description": "Bot objects",
"type": "array",
"items": {
"$ref": "#/components/schemas/Bot"
}
},
"users": {
"description": "User objects",
"type": "array",
"items": {
"$ref": "#/components/schemas/User"
}
}
}
},
"DataEditBot": {
"title": "Bot Details",
"type": "object",