diff options
author | Chocobozzz <me@florianbigard.com> | 2022-10-28 16:15:04 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-10-28 16:34:08 +0200 |
commit | 9e5cf66be7ad897e106f283bee73a165c72e74de (patch) | |
tree | 16de6f775c412281236b8f99be8e5118e5a6ff71 /support/doc/api | |
parent | 3f9decbd01d25f1b1805e2764dff4beae7d36c19 (diff) | |
download | PeerTube-9e5cf66be7ad897e106f283bee73a165c72e74de.tar.gz PeerTube-9e5cf66be7ad897e106f283bee73a165c72e74de.tar.zst PeerTube-9e5cf66be7ad897e106f283bee73a165c72e74de.zip |
Breaking API: Consistency with role id/label
Diffstat (limited to 'support/doc/api')
-rw-r--r-- | support/doc/api/openapi.yaml | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index 7ffe8c67b..69a6eff72 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml | |||
@@ -7522,13 +7522,16 @@ components: | |||
7522 | nsfwPolicy: | 7522 | nsfwPolicy: |
7523 | $ref: '#/components/schemas/NSFWPolicy' | 7523 | $ref: '#/components/schemas/NSFWPolicy' |
7524 | role: | 7524 | role: |
7525 | $ref: '#/components/schemas/UserRole' | 7525 | type: object |
7526 | roleLabel: | 7526 | properties: |
7527 | type: string | 7527 | id: |
7528 | enum: | 7528 | $ref: '#/components/schemas/UserRole' |
7529 | - User | 7529 | label: |
7530 | - Moderator | 7530 | type: string |
7531 | - Administrator | 7531 | enum: |
7532 | - User | ||
7533 | - Moderator | ||
7534 | - Administrator | ||
7532 | theme: | 7535 | theme: |
7533 | type: string | 7536 | type: string |
7534 | description: Theme enabled by this user | 7537 | description: Theme enabled by this user |