]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix channel update/create openapi doc
authorChocobozzz <me@florianbigard.com>
Wed, 15 Feb 2023 14:59:29 +0000 (15:59 +0100)
committerChocobozzz <me@florianbigard.com>
Wed, 15 Feb 2023 15:08:37 +0000 (16:08 +0100)
support/doc/api/openapi.yaml

index f90b7f575f1a8c7440c80040d1f2b0b2377def73..256bfc701fbffb7f1dae98e35b5d08068e9c528b 100644 (file)
@@ -8113,9 +8113,18 @@ components:
                 uuid:
                   $ref: '#/components/schemas/UUIDv4'
 
+    VideoChannelEdit:
+      properties:
+        displayName:
+          description: Channel display name
+        description:
+          description: Channel description
+        support:
+          description: How to support/fund the channel
+
     VideoChannelCreate:
       allOf:
-        - $ref: '#/components/schemas/VideoChannel'
+        - $ref: '#/components/schemas/VideoChannelEdit'
         - properties:
             name:
               description: username of the channel to create
@@ -8126,11 +8135,12 @@ components:
         - displayName
     VideoChannelUpdate:
       allOf:
-        - $ref: '#/components/schemas/VideoChannel'
+        - $ref: '#/components/schemas/VideoChannelEdit'
         - properties:
             bulkVideosSupportUpdate:
               type: boolean
               description: Update the support field for all videos of this channel
+
     VideoChannelList:
       properties:
         total: