Change discordId type from integer to string across frontend, backend, and API schema for consistency and proper validation.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user