secify username patterns for user create/register in openapi spec

closes #4061
pull/4107/head
Rigel Kent 2021-05-10 11:20:13 +02:00
parent 5844dde3b8
commit 6bd7f09781
No known key found for this signature in database
GPG Key ID: 5E53E96A494E452F
1 changed files with 2 additions and 0 deletions

View File

@ -5642,6 +5642,7 @@ components:
description: The user username
minLength: 1
maxLength: 50
pattern: '/^[a-z0-9._]{1,50}$/'
password:
type: string
format: password
@ -5661,6 +5662,7 @@ components:
channelName:
type: string
description: The user default channel username
pattern: '/^[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\\-_.:]+$/'
role:
$ref: '#/components/schemas/UserRole'
adminFlags: