aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/doc
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2021-05-10 11:20:13 +0200
committerRigel Kent <sendmemail@rigelk.eu>2021-05-10 11:27:35 +0200
commit6bd7f0978164d4c74e006619ac016fbbcd049cc9 (patch)
tree11f20bb6f0036379b3054a96b8dd502ee3ff723f /support/doc
parent5844dde3b880815c4d156681e19c6fb8a2da8f5e (diff)
downloadPeerTube-6bd7f0978164d4c74e006619ac016fbbcd049cc9.tar.gz
PeerTube-6bd7f0978164d4c74e006619ac016fbbcd049cc9.tar.zst
PeerTube-6bd7f0978164d4c74e006619ac016fbbcd049cc9.zip
secify username patterns for user create/register in openapi spec
closes #4061
Diffstat (limited to 'support/doc')
-rw-r--r--support/doc/api/openapi.yaml2
1 files changed, 2 insertions, 0 deletions
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:
5642 description: The user username 5642 description: The user username
5643 minLength: 1 5643 minLength: 1
5644 maxLength: 50 5644 maxLength: 50
5645 pattern: '/^[a-z0-9._]{1,50}$/'
5645 password: 5646 password:
5646 type: string 5647 type: string
5647 format: password 5648 format: password
@@ -5661,6 +5662,7 @@ components:
5661 channelName: 5662 channelName:
5662 type: string 5663 type: string
5663 description: The user default channel username 5664 description: The user default channel username
5665 pattern: '/^[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\\-_.:]+$/'
5664 role: 5666 role:
5665 $ref: '#/components/schemas/UserRole' 5667 $ref: '#/components/schemas/UserRole'
5666 adminFlags: 5668 adminFlags: