From 6bd7f0978164d4c74e006619ac016fbbcd049cc9 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Mon, 10 May 2021 11:20:13 +0200 Subject: secify username patterns for user create/register in openapi spec closes #4061 --- support/doc/api/openapi.yaml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'support') diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index 7eec9ec28..951d3886f 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml @@ -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: -- cgit v1.2.3