ActivityPub-federated video streaming platform using P2P directly in your web browser
Improve and correct openapi documentation
Wicklow4d6d2f0479c6
diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yamlindex 1a20af0d27..ff7312867f 100644--- a/support/doc/api/openapi.yaml+++ b/support/doc/api/openapi.yaml@@ -1538,7 +1538,7 @@ paths:--data client_secret="$client_secret" \--data grant_type=password \--data username="$USERNAME" \- --data password="$PASSWORD" \+ --data-urlencode password="$PASSWORD" \| jq -r ".access_token"/api/v1/users/revoke-token:@@ -2941,6 +2941,7 @@ paths:description: Date when the content was originally publishedtype: stringformat: date-time+ nullable: truescheduleUpdate:$ref: '#/components/schemas/VideoScheduledUpdate'videoPasswords:@@ -8205,6 +8206,7 @@ components:description: last time the video's metadata was modifiedoriginallyPublishedAt:type: string+ nullable: trueformat: date-timeexample: 2010-10-01T10:52:46.396Zdescription: used to represent a date of first publication, prior to the practical publication date of `publishedAt`@@ -8224,8 +8226,9 @@ components:allOf:- $ref: '#/components/schemas/VideoPrivacyConstant'description: privacy policy used to distribute the video- description:+ truncatedDescription:type: string+ nullable: trueexample: |**[Want to help to translate this video?](https://weblate.framasoft.org/projects/what-is-peertube-video/)**\r\n\r\n**Take back the control of your videos! [#JoinPeertube](https://joinpeertube.org)**\r\n*A decentralized video hosting network, based on fr...@@ -8233,7 +8236,6 @@ components:maxLength: 250description: |truncated description of the video, written in Markdown.- Resolve `descriptionPath` to get the full description of maximum `10000` characters.duration:type: integerexample: 1419@@ -8241,6 +8243,7 @@ components:description: duration of the video in secondsaspectRatio:type: number+ nullable: trueformat: floatexample: 1.778description: "**PeerTube >= 6.1** Aspect ratio of the video stream"@@ -8307,12 +8310,23 @@ components:viewers:type: integerdescription: If the video is a live, you have the amount of current viewers- descriptionPath:+ description:type: string- example: /api/v1/videos/9c9de5e8-0a1e-484a-b099-e80766180a6d/description- description: path at which to get the full description of maximum `10000` characters+ nullable: true+ example: |+ "**[Want to help to translate this video?](https://weblate.framasoft.org/projects/what-is-peertube-video/)**\r\n\r\n+ **Take back the control of your videos! [#JoinPeertube](https://joinpeertube.org)**\r\n*A decentralized video hosting network,+ based on free/libre software!*\r\n\r\n**Animation Produced by:** [LILA](https://libreart.info) - [ZeMarmot Team](https://film.zemarmot.net)\r\n+ *Directed by* Aryeom\r\n*Assistant* Jehan\r\n**Licence**: [CC-By-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)\r\n\r\n+ **Sponsored by** [Framasoft](https://framasoft.org)\r\n\r\n**Music**: [Red Step Forward](http://play.dogmazic.net/song.php?song_id=52491) - CC-By Ken Bushima\r\n\r\n+ **Movie Clip**: [Caminades 3: Llamigos](http://www.caminandes.com/) CC-By Blender Institute\r\n\r\n**Video sources**: https://gitlab.gnome.org/Jehan/what-is-peertube/"+ minLength: 3+ maxLength: 1000+ description: |+ full description of the video, written in Markdown.support:type: string+ nullable: truedescription: A text tell the audience how to support the video creatorexample: Please support our work on https://soutenir.framasoft.org/en/ <3minLength: 3@@ -8814,6 +8828,10 @@ components:description: immutable name of the actor, used to find or mention itallOf:- $ref: '#/components/schemas/username'+ avatars:+ type: array+ items:+ $ref: '#/components/schemas/ActorImage'host:type: stringformat: hostname@@ -8841,6 +8859,7 @@ components:- properties:userId:description: object id for the user tied to this account+ nullable: trueallOf:- $ref: '#/components/schemas/User/properties/id'displayName:@@ -8850,6 +8869,7 @@ components:maxLength: 120description:type: string+ nullable: truedescription: text or bio displayed on the account's profileUserViewingVideo:required:@@ -10199,11 +10219,13 @@ components:maxLength: 120description:type: string+ nullable: trueexample: Videos made with <3 by FramasoftminLength: 3maxLength: 1000support:type: string+ nullable: truedescription: text shown by default on all videos of this channel, to tell the audience how to support itexample: Please support our work on https://soutenir.framasoft.org/en/ <3minLength: 3@@ -10220,14 +10242,7 @@ components:items:$ref: '#/components/schemas/ActorImage'ownerAccount:- readOnly: true- nullable: true- type: object- properties:- id:- type: integer- uuid:- $ref: '#/components/schemas/UUIDv4'+ $ref: '#/components/schemas/Account'VideoChannelEdit:properties: