Change discordId type from integer to string across frontend, backend, and API schema for consistency and proper validation.

This commit is contained in:
2025-11-23 04:14:21 +01:00
parent ea4780cc91
commit 2e7c91bb73
7 changed files with 22 additions and 15 deletions
@@ -124,9 +124,10 @@ components:
- email
properties:
discordId:
type: integer
format: int64
description: Discord user's unique identifier'
type: string
pattern: "^[0-9]{17,18}$"
minLength: 17
maxLength: 18
appeal:
type: string
description: Appeal text explaining why the punishment should be reconsidered
@@ -11,8 +11,10 @@ getBannedUser:
required: true
description: The discord id of the user
schema:
type: integer
format: int64
type: string
pattern: "^[0-9]{17,18}$"
minLength: 17
maxLength: 18
responses:
'200':
description: Banned user
@@ -47,8 +49,10 @@ components:
- avatarUrl
properties:
userId:
type: integer
format: int64
type: string
pattern: "^[0-9]{17,18}$"
minLength: 17
maxLength: 18
reason:
type: string
name: