]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix boolean types, add missing downloadEnabled
authorArman <Arman1371@gmail.com>
Tue, 22 Sep 2020 00:02:40 +0000 (03:32 +0330)
committerChocobozzz <chocobozzz@cpy.re>
Tue, 22 Sep 2020 06:19:37 +0000 (08:19 +0200)
support/doc/api/openapi.yaml

index cf151a3d7e8a16427e8817c12d657b7f7cd2056e..4c6e0d12cb59a1287d0fb40a08dccc4b39f01879 100644 (file)
@@ -1307,7 +1307,7 @@ paths:
                   type: string
                 waitTranscoding:
                   description: Whether or not we wait transcoding before publish the video
-                  type: string
+                  type: boolean
                 support:
                   description: A text tell the audience how to support the video creator
                   example: Please support my work on <insert crowdfunding plateform>! <3
@@ -1331,6 +1331,9 @@ paths:
                 commentsEnabled:
                   description: Enable or disable comments for this video
                   type: boolean
+                downloadEnabled:
+                  description: Enable or disable downloading for this video
+                  type: boolean
                 originallyPublishedAt:
                   description: Date when the content was originally published
                   type: string
@@ -1428,14 +1431,14 @@ paths:
                   type: string
                 waitTranscoding:
                   description: Whether or not we wait transcoding before publish the video
-                  type: string
+                  type: boolean
                 support:
                   description: A text tell the audience how to support the video creator
                   example: Please support my work on <insert crowdfunding plateform>! <3
                   type: string
                 nsfw:
                   description: Whether or not this video contains sensitive content
-                  type: string
+                  type: boolean
                 name:
                   description: Video name
                   type: string
@@ -1450,7 +1453,10 @@ paths:
                     maxLength: 30
                 commentsEnabled:
                   description: Enable or disable comments for this video
-                  type: string
+                  type: boolean
+                downloadEnabled:
+                  description: Enable or disable downloading for this video
+                  type: boolean
                 scheduleUpdate:
                   $ref: '#/components/schemas/VideoScheduledUpdate'
               required: