Fix comment body api doc
authorChocobozzz <me@florianbigard.com>
Tue, 21 Apr 2020 13:28:17 +0000 (15:28 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 21 Apr 2020 13:28:17 +0000 (15:28 +0200)
support/doc/api/openapi.yaml

index 6197a431faba4a0276b685bd37f07c3c49b2eae8..9fe98b8dfd6df1f96ab89966a74d53ec4b4d0605 100644 (file)
@@ -1808,6 +1808,18 @@ paths:
             application/json:
               schema:
                 $ref: '#/components/schemas/CommentThreadPostResponse'
+      requestBody:
+        content:
+          application/json:
+            schema:
+              type: object
+              properties:
+                text:
+                  type: string
+                  description: 'Text comment'
+              required:
+                - text
+
   '/videos/{id}/comment-threads/{threadId}':
     get:
       summary: Get a thread
@@ -1840,6 +1852,18 @@ paths:
             application/json:
               schema:
                 $ref: '#/components/schemas/CommentThreadPostResponse'
+      requestBody:
+        content:
+          application/json:
+            schema:
+              type: object
+              properties:
+                text:
+                  type: string
+                  description: 'Text comment'
+              required:
+                - text
+
     delete:
       summary: Delete a comment or a reply
       security: