]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix video channel list api
authorChocobozzz <me@florianbigard.com>
Thu, 8 Apr 2021 12:53:03 +0000 (14:53 +0200)
committerChocobozzz <me@florianbigard.com>
Thu, 8 Apr 2021 12:53:03 +0000 (14:53 +0200)
support/doc/api/openapi.yaml

index bf99cb45c5e8eb719c4f38bb3b503c7499b1de46..a47654f69f96fda492357064a63fa33d987e95a9 100644 (file)
@@ -2526,9 +2526,14 @@ paths:
           content:
             application/json:
               schema:
-                type: array
-                items:
-                  $ref: '#/components/schemas/VideoChannel'
+                properties:
+                  total:
+                    type: integer
+                    example: 1
+                  data:
+                    type: array
+                    items:
+                      $ref: '#/components/schemas/VideoChannel'
   '/accounts/{name}/ratings':
     get:
       summary: List ratings of an account