secify username patterns for user create/register in openapi spec
closes #4061
This commit is contained in:
parent
5844dde3b8
commit
6bd7f09781
|
@ -5642,6 +5642,7 @@ components:
|
||||||
description: The user username
|
description: The user username
|
||||||
minLength: 1
|
minLength: 1
|
||||||
maxLength: 50
|
maxLength: 50
|
||||||
|
pattern: '/^[a-z0-9._]{1,50}$/'
|
||||||
password:
|
password:
|
||||||
type: string
|
type: string
|
||||||
format: password
|
format: password
|
||||||
|
@ -5661,6 +5662,7 @@ components:
|
||||||
channelName:
|
channelName:
|
||||||
type: string
|
type: string
|
||||||
description: The user default channel username
|
description: The user default channel username
|
||||||
|
pattern: '/^[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\\-_.:]+$/'
|
||||||
role:
|
role:
|
||||||
$ref: '#/components/schemas/UserRole'
|
$ref: '#/components/schemas/UserRole'
|
||||||
adminFlags:
|
adminFlags:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user