1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 04:32:35 +01:00

Updated the openapi schema

This commit is contained in:
aintDatCap 2024-07-24 20:07:08 +02:00
parent e4a14d659a
commit 4e0ac5274c

View File

@ -1633,6 +1633,12 @@
"$ref": "#/components/schemas/SecurityKey"
}
},
"badge_ids": {
"type": "array",
"items": {
"type": "string"
}
},
"id": {
"type": "string"
}
@ -3658,6 +3664,12 @@
},
"pronouns": {
"type": "string"
},
"badge_ids": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
@ -4104,6 +4116,19 @@
},
"username": {
"type": "string"
},
"badge_ids": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
}
},
"required": [
@ -4204,12 +4229,17 @@
"type": "integer",
"default": 65535
},
"maxBulkBanUsers": {
"type": "integer",
"default": 200
},
"maxChannelsInCategory": {
"type": "integer",
"default": 65535
}
},
"required": [
"maxBulkBanUsers",
"maxChannels",
"maxChannelsInCategory",
"maxEmojis",
@ -4427,6 +4457,28 @@
"bio"
]
},
"Badge": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"icon": {
"type": "string"
},
"link": {
"type": "string"
}
},
"required": [
"description",
"icon",
"id"
]
},
"TokenResponse": {
"type": "object",
"properties": {
@ -5307,7 +5359,6 @@
},
"additionalProperties": false,
"required": [
"channel_id",
"message_id"
]
},
@ -5465,7 +5516,6 @@
},
"additionalProperties": false,
"required": [
"channel_id",
"message_id"
]
},
@ -7216,6 +7266,12 @@
"pronouns": {
"type": "string"
},
"badge_ids": {
"type": "array",
"items": {
"type": "string"
}
},
"mfa_enabled": {
"type": "boolean"
},
@ -7333,6 +7389,12 @@
"pronouns": {
"type": "string"
},
"badge_ids": {
"type": "array",
"items": {
"type": "string"
}
},
"mfa_enabled": {
"type": "boolean"
},
@ -8014,9 +8076,16 @@
"bio",
"guild_id"
]
},
"badges": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Badge"
}
}
},
"required": [
"badges",
"connected_accounts",
"mutual_guilds",
"premium_type",