fix video channel parameters limit in openapi spec
This commit is contained in:
parent
bdac05840d
commit
4302058c4d
|
@ -1824,10 +1824,10 @@ paths:
|
||||||
reason:
|
reason:
|
||||||
description: Reason why the user reports this video
|
description: Reason why the user reports this video
|
||||||
type: string
|
type: string
|
||||||
minLength: 4
|
minLength: 2
|
||||||
|
maxLength: 3000
|
||||||
predefinedReasons:
|
predefinedReasons:
|
||||||
$ref: '#/components/schemas/PredefinedAbuseReasons'
|
$ref: '#/components/schemas/PredefinedAbuseReasons'
|
||||||
|
|
||||||
video:
|
video:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -1883,6 +1883,8 @@ paths:
|
||||||
moderationComment:
|
moderationComment:
|
||||||
type: string
|
type: string
|
||||||
description: Update the report comment visible only to the moderation team
|
description: Update the report comment visible only to the moderation team
|
||||||
|
minLength: 2
|
||||||
|
maxLength: 3000
|
||||||
responses:
|
responses:
|
||||||
'204':
|
'204':
|
||||||
description: successful operation
|
description: successful operation
|
||||||
|
@ -1940,6 +1942,8 @@ paths:
|
||||||
message:
|
message:
|
||||||
description: Message to send
|
description: Message to send
|
||||||
type: string
|
type: string
|
||||||
|
minLength: 2
|
||||||
|
maxLength: 3000
|
||||||
required:
|
required:
|
||||||
- message
|
- message
|
||||||
responses:
|
responses:
|
||||||
|
@ -4448,6 +4452,8 @@ components:
|
||||||
reason:
|
reason:
|
||||||
type: string
|
type: string
|
||||||
example: The video is a spam
|
example: The video is a spam
|
||||||
|
minLength: 2
|
||||||
|
maxLength: 3000
|
||||||
predefinedReasons:
|
predefinedReasons:
|
||||||
$ref: '#/components/schemas/AbusePredefinedReasons'
|
$ref: '#/components/schemas/AbusePredefinedReasons'
|
||||||
reporterAccount:
|
reporterAccount:
|
||||||
|
@ -4457,6 +4463,8 @@ components:
|
||||||
moderationComment:
|
moderationComment:
|
||||||
type: string
|
type: string
|
||||||
example: Decided to ban the server since it spams us regularly
|
example: Decided to ban the server since it spams us regularly
|
||||||
|
minLength: 2
|
||||||
|
maxLength: 3000
|
||||||
video:
|
video:
|
||||||
$ref: '#/components/schemas/VideoInfo'
|
$ref: '#/components/schemas/VideoInfo'
|
||||||
createdAt:
|
createdAt:
|
||||||
|
@ -4468,6 +4476,8 @@ components:
|
||||||
type: integer
|
type: integer
|
||||||
message:
|
message:
|
||||||
type: string
|
type: string
|
||||||
|
minLength: 2
|
||||||
|
maxLength: 3000
|
||||||
byModerator:
|
byModerator:
|
||||||
type: boolean
|
type: boolean
|
||||||
createdAt:
|
createdAt:
|
||||||
|
@ -4489,12 +4499,16 @@ components:
|
||||||
format: date-time
|
format: date-time
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
|
minLength: 3
|
||||||
|
maxLength: 120
|
||||||
uuid:
|
uuid:
|
||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
|
example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
|
||||||
description:
|
description:
|
||||||
type: string
|
type: string
|
||||||
|
minLength: 3
|
||||||
|
maxLength: 10000
|
||||||
duration:
|
duration:
|
||||||
type: integer
|
type: integer
|
||||||
views:
|
views:
|
||||||
|
@ -4509,8 +4523,12 @@ components:
|
||||||
properties:
|
properties:
|
||||||
displayName:
|
displayName:
|
||||||
type: string
|
type: string
|
||||||
|
minLength: 1
|
||||||
|
maxLength: 120
|
||||||
description:
|
description:
|
||||||
type: string
|
type: string
|
||||||
|
minLength: 3
|
||||||
|
maxLength: 1000
|
||||||
isLocal:
|
isLocal:
|
||||||
type: boolean
|
type: boolean
|
||||||
ownerAccount:
|
ownerAccount:
|
||||||
|
@ -4534,12 +4552,16 @@ components:
|
||||||
format: date-time
|
format: date-time
|
||||||
description:
|
description:
|
||||||
type: string
|
type: string
|
||||||
|
minLength: 3
|
||||||
|
maxLength: 1000
|
||||||
uuid:
|
uuid:
|
||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
|
example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
|
||||||
displayName:
|
displayName:
|
||||||
type: string
|
type: string
|
||||||
|
minLength: 1
|
||||||
|
maxLength: 120
|
||||||
isLocal:
|
isLocal:
|
||||||
type: boolean
|
type: boolean
|
||||||
videoLength:
|
videoLength:
|
||||||
|
@ -4563,6 +4585,8 @@ components:
|
||||||
format: url
|
format: url
|
||||||
text:
|
text:
|
||||||
type: string
|
type: string
|
||||||
|
minLength: 1
|
||||||
|
maxLength: 10000
|
||||||
threadId:
|
threadId:
|
||||||
type: integer
|
type: integer
|
||||||
inReplyToCommentId:
|
inReplyToCommentId:
|
||||||
|
@ -5381,34 +5405,41 @@ components:
|
||||||
- username
|
- username
|
||||||
- password
|
- password
|
||||||
- email
|
- email
|
||||||
VideoChannelCreate:
|
|
||||||
|
VideoChannelCommon:
|
||||||
properties:
|
properties:
|
||||||
name:
|
|
||||||
type: string
|
|
||||||
displayName:
|
displayName:
|
||||||
type: string
|
type: string
|
||||||
|
minLength: 1
|
||||||
|
maxLength: 120
|
||||||
description:
|
description:
|
||||||
type: string
|
type: string
|
||||||
|
minLength: 3
|
||||||
|
maxLength: 1000
|
||||||
support:
|
support:
|
||||||
type: string
|
type: string
|
||||||
description: 'A text shown by default on all videos of this channel, to tell the audience how to support it'
|
description: 'A text shown by default on all videos of this channel, to tell the audience how to support it'
|
||||||
example: Please support my work on <insert crowdfunding plateform>! <3
|
example: Please support my work on <insert crowdfunding plateform>! <3
|
||||||
|
minLength: 3
|
||||||
|
maxLength: 1000
|
||||||
|
VideoChannelCreate:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/components/schemas/VideoChannelCommon'
|
||||||
|
- properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
minLength: 1
|
||||||
|
maxLength: 120
|
||||||
required:
|
required:
|
||||||
- name
|
- name
|
||||||
- displayName
|
- displayName
|
||||||
VideoChannelUpdate:
|
VideoChannelUpdate:
|
||||||
properties:
|
allOf:
|
||||||
displayName:
|
- $ref: '#/components/schemas/VideoChannelCommon'
|
||||||
type: string
|
- properties:
|
||||||
description:
|
bulkVideosSupportUpdate:
|
||||||
type: string
|
type: boolean
|
||||||
support:
|
description: 'Update the support field for all videos of this channel'
|
||||||
type: string
|
|
||||||
description: 'A text shown by default on all videos of this channel, to tell the audience how to support it'
|
|
||||||
example: Please support my work on <insert crowdfunding plateform>! <3
|
|
||||||
bulkVideosSupportUpdate:
|
|
||||||
type: boolean
|
|
||||||
description: 'Update the support field for all videos of this channel'
|
|
||||||
|
|
||||||
MRSSPeerLink:
|
MRSSPeerLink:
|
||||||
type: object
|
type: object
|
||||||
|
|
Loading…
Reference in New Issue