fix(AdminUserSchemas): use DiscriminatorType for discriminator (#1218)

Co-authored-by: Hampus <[email protected]>
This commit is contained in:
JiraliteandHampus authored and GitHub committed 2026-06-30 01:22:05 +02:00
1 parent 4a741d8396
commit 4a93082f0a
10 files changed
+38 -20

No files matched your search

+5 -4
View File
@@ -23611,7 +23611,7 @@
"name": "discriminator",
"in": "query",
"required": true,
"schema": {"type": "string", "pattern": "^\\d{1,4}$", "description": "The discriminator to check"}
"schema": {"$ref": "#/components/schemas/DiscriminatorType"}
}
]
}
@@ -32140,7 +32140,7 @@
"type": "object",
"properties": {
"username": {"$ref": "#/components/schemas/UsernameType"},
"discriminator": {"type": "string", "pattern": "^\\d{1,4}$", "description": "The discriminator of the bot"},
"discriminator": {"$ref": "#/components/schemas/DiscriminatorType"},
"avatar": {
"anyOf": [{"$ref": "#/components/schemas/Base64ImageType"}, {"type": "null"}],
"description": "The avatar image as base64"
@@ -32153,6 +32153,7 @@
"bot_flags": {"$ref": "#/components/schemas/BotFlags"}
}
},
"DiscriminatorType": {"type": "string", "pattern": "^\\d{1,4}$"},
"BotTokenResetResponse": {
"type": "object",
"properties": {
@@ -34722,7 +34723,7 @@
"type": "object",
"properties": {
"username": {"$ref": "#/components/schemas/UsernameType"},
"discriminator": {"type": "string", "pattern": "^\\d{1,4}$", "description": "The 4-digit discriminator tag"},
"discriminator": {"$ref": "#/components/schemas/DiscriminatorType"},
"global_name": {
"anyOf": [{"type": "string"}, {"type": "null"}],
"description": "The display name shown to other users"
@@ -36398,7 +36399,7 @@
"type": "object",
"properties": {
"username": {"$ref": "#/components/schemas/UsernameType"},
"discriminator": {"type": "string", "pattern": "^\\d{1,4}$", "description": "Discriminator tag of the user"}
"discriminator": {"$ref": "#/components/schemas/DiscriminatorType"}
},
"required": ["username", "discriminator"]
},