Skip to content

Commit

Permalink
Updated the openapi schema
Browse files Browse the repository at this point in the history
  • Loading branch information
aintDatCap committed Jul 24, 2024
1 parent e4a14d6 commit 4e0ac52
Showing 1 changed file with 71 additions and 2 deletions.
73 changes: 71 additions & 2 deletions assets/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1633,6 +1633,12 @@
"$ref": "#/components/schemas/SecurityKey"
}
},
"badge_ids": {
"type": "array",
"items": {
"type": "string"
}
},
"id": {
"type": "string"
}
Expand Down Expand Up @@ -3658,6 +3664,12 @@
},
"pronouns": {
"type": "string"
},
"badge_ids": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
Expand Down Expand Up @@ -4104,6 +4116,19 @@
},
"username": {
"type": "string"
},
"badge_ids": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
}
},
"required": [
Expand Down Expand Up @@ -4204,12 +4229,17 @@
"type": "integer",
"default": 65535
},
"maxBulkBanUsers": {
"type": "integer",
"default": 200
},
"maxChannelsInCategory": {
"type": "integer",
"default": 65535
}
},
"required": [
"maxBulkBanUsers",
"maxChannels",
"maxChannelsInCategory",
"maxEmojis",
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -5307,7 +5359,6 @@
},
"additionalProperties": false,
"required": [
"channel_id",
"message_id"
]
},
Expand Down Expand Up @@ -5465,7 +5516,6 @@
},
"additionalProperties": false,
"required": [
"channel_id",
"message_id"
]
},
Expand Down Expand Up @@ -7216,6 +7266,12 @@
"pronouns": {
"type": "string"
},
"badge_ids": {
"type": "array",
"items": {
"type": "string"
}
},
"mfa_enabled": {
"type": "boolean"
},
Expand Down Expand Up @@ -7333,6 +7389,12 @@
"pronouns": {
"type": "string"
},
"badge_ids": {
"type": "array",
"items": {
"type": "string"
}
},
"mfa_enabled": {
"type": "boolean"
},
Expand Down Expand Up @@ -8014,9 +8076,16 @@
"bio",
"guild_id"
]
},
"badges": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Badge"
}
}
},
"required": [
"badges",
"connected_accounts",
"mutual_guilds",
"premium_type",
Expand Down

0 comments on commit 4e0ac52

Please sign in to comment.