1
0
Fork 0

fix name limit for video in openapi spec

This commit is contained in:
Rigel Kent 2021-05-03 12:17:30 +02:00
parent 1683c7e239
commit bdac05840d
No known key found for this signature in database
GPG key ID: 5E53E96A494E452F

View file

@ -1226,6 +1226,8 @@ paths:
name: name:
description: Video name description: Video name
type: string type: string
minLength: 3
maxLength: 120
tags: tags:
description: Video tags (maximum 5 tags each between 2 and 30 characters) description: Video tags (maximum 5 tags each between 2 and 30 characters)
type: array type: array
@ -1397,6 +1399,8 @@ paths:
name: name:
description: Video name description: Video name
type: string type: string
minLength: 3
maxLength: 120
tags: tags:
description: Video tags (maximum 5 tags each between 2 and 30 characters) description: Video tags (maximum 5 tags each between 2 and 30 characters)
type: array type: array
@ -1523,6 +1527,8 @@ paths:
name: name:
description: Video name description: Video name
type: string type: string
minLength: 3
maxLength: 120
tags: tags:
description: Video tags (maximum 5 tags each between 2 and 30 characters) description: Video tags (maximum 5 tags each between 2 and 30 characters)
type: array type: array
@ -1627,6 +1633,8 @@ paths:
name: name:
description: Live video/replay name description: Live video/replay name
type: string type: string
minLength: 3
maxLength: 120
tags: tags:
description: Live video/replay tags (maximum 5 tags each between 2 and 30 characters) description: Live video/replay tags (maximum 5 tags each between 2 and 30 characters)
type: array type: array
@ -2379,6 +2387,8 @@ paths:
displayName: displayName:
description: Video playlist display name description: Video playlist display name
type: string type: string
minLength: 1
maxLength: 120
thumbnailfile: thumbnailfile:
description: Video playlist thumbnail file description: Video playlist thumbnail file
type: string type: string
@ -2432,6 +2442,8 @@ paths:
displayName: displayName:
description: Video playlist display name description: Video playlist display name
type: string type: string
minLength: 1
maxLength: 120
thumbnailfile: thumbnailfile:
description: Video playlist thumbnail file description: Video playlist thumbnail file
type: string type: string
@ -4208,6 +4220,8 @@ components:
example: 9c9de5e8-0a1e-484a-b099-e80766180a6d example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
name: name:
type: string type: string
minLength: 3
maxLength: 120
Video: Video:
properties: properties:
id: id:
@ -4249,6 +4263,8 @@ components:
name: name:
type: string type: string
example: What is PeerTube? example: What is PeerTube?
minLength: 3
maxLength: 120
thumbnailPath: thumbnailPath:
type: string type: string
example: /static/thumbnails/a65bc12f-9383-462e-81ae-8207e8b434ee.jpg example: /static/thumbnails/a65bc12f-9383-462e-81ae-8207e8b434ee.jpg
@ -4310,10 +4326,14 @@ components:
account: account:
$ref: '#/components/schemas/Account' $ref: '#/components/schemas/Account'
tags: tags:
example: [flowers, gardening]
type: array type: array
minItems: 1
maxItems: 5
items: items:
type: string type: string
example: [flowers, gardening] minLength: 2
maxLength: 30
files: files:
type: array type: array
description: 'WebTorrent/raw video files. Can be empty if WebTorrent is disabled on the server. In this case, video files will be in the "streamingPlaylists[].files" property' description: 'WebTorrent/raw video files. Can be empty if WebTorrent is disabled on the server. In this case, video files will be in the "streamingPlaylists[].files" property'
@ -4438,16 +4458,7 @@ components:
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
video: video:
type: object $ref: '#/components/schemas/VideoInfo'
properties:
id:
type: integer
name:
type: string
uuid:
type: string
format: uuid
example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
createdAt: createdAt:
type: string type: string
format: date-time format: date-time