]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
make streaming playlists pivotable objects in openapi spec
authorRigel Kent <sendmemail@rigelk.eu>
Tue, 4 May 2021 08:25:05 +0000 (10:25 +0200)
committerRigel Kent <sendmemail@rigelk.eu>
Tue, 4 May 2021 08:25:09 +0000 (10:25 +0200)
support/doc/api/openapi.yaml

index 4283e61d29083fcb6426584c65363f224c1bc3dd..701988478278f81f845d24fe9eed422a9a77a8b2 100644 (file)
@@ -4208,14 +4208,21 @@ components:
           type: string
           format: url
     VideoStreamingPlaylists:
+      allOf:
+        - type: object
+          properties:
+            id:
+              type: integer
+            type:
+              type: integer
+              enum:
+                - 1
+              description: |
+                Playlist type:
+                - `1`: HLS
+        - $ref: '#/components/schemas/VideoStreamingPlaylists-HLS'
+    VideoStreamingPlaylists-HLS:
       properties:
-        id:
-          type: integer
-        type:
-          type: integer
-          enum:
-            - 1
-          description: 'Playlist type (HLS = `1`)'
         playlistUrl:
           type: string
           format: url