fix: Increase max username length

Closes #1441
This commit is contained in:
Maksim Eltyshev
2025-11-25 15:03:35 +01:00
parent 8a288d1816
commit c646f0f5b3
7 changed files with 10 additions and 10 deletions

View File

@@ -48,7 +48,7 @@
* username:
* type: string
* minLength: 3
* maxLength: 16
* maxLength: 32
* pattern: "^[a-zA-Z0-9]+((_{1}|\\.|){1}[a-zA-Z0-9])*$"
* nullable: true
* description: Unique username for user identification
@@ -150,7 +150,7 @@ module.exports = {
type: 'string',
isNotEmptyString: true,
minLength: 3,
maxLength: 16,
maxLength: 32,
regex: /^[a-zA-Z0-9]+((_|\.)?[a-zA-Z0-9])*$/,
allowNull: true,
},

View File

@@ -30,7 +30,7 @@
* username:
* type: string
* minLength: 3
* maxLength: 16
* maxLength: 32
* pattern: '^[a-zA-Z0-9]+((_|\.)?[a-zA-Z0-9])*$'
* nullable: true
* description: Unique username for user identification
@@ -93,7 +93,7 @@ module.exports = {
type: 'string',
isNotEmptyString: true,
minLength: 3,
maxLength: 16,
maxLength: 32,
regex: /^[a-zA-Z0-9]+((_|\.)?[a-zA-Z0-9])*$/,
allowNull: true,
},