mirror of https://github.com/Chocobozzz/PeerTube
Fix video privacy in rest api documentation
parent
67ae04a5e7
commit
ee89e8fd1a
|
@ -1026,7 +1026,7 @@ paths:
|
||||||
description: Video preview file
|
description: Video preview file
|
||||||
type: string
|
type: string
|
||||||
privacy:
|
privacy:
|
||||||
$ref: '#/components/schemas/VideoPrivacy'
|
$ref: '#/components/schemas/VideoPrivacySet'
|
||||||
category:
|
category:
|
||||||
description: Video category
|
description: Video category
|
||||||
type: string
|
type: string
|
||||||
|
@ -1130,7 +1130,7 @@ paths:
|
||||||
description: Video preview file
|
description: Video preview file
|
||||||
type: string
|
type: string
|
||||||
privacy:
|
privacy:
|
||||||
$ref: '#/components/schemas/VideoPrivacy'
|
$ref: '#/components/schemas/VideoPrivacySet'
|
||||||
category:
|
category:
|
||||||
description: Video category
|
description: Video category
|
||||||
type: string
|
type: string
|
||||||
|
@ -1824,12 +1824,23 @@ components:
|
||||||
type: string
|
type: string
|
||||||
label:
|
label:
|
||||||
type: string
|
type: string
|
||||||
VideoPrivacy:
|
VideoPrivacySet:
|
||||||
type: string
|
type: integer
|
||||||
enum:
|
enum:
|
||||||
- Public
|
- 1
|
||||||
- Unlisted
|
- 2
|
||||||
- Private
|
- 3
|
||||||
|
description: 'The video privacy (Public = 1, Unlisted = 2, Private = 3)'
|
||||||
|
VideoPrivacyConstant:
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: integer
|
||||||
|
enum:
|
||||||
|
- 1
|
||||||
|
- 2
|
||||||
|
- 3
|
||||||
|
label:
|
||||||
|
type: string
|
||||||
Video:
|
Video:
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
|
@ -1849,7 +1860,7 @@ components:
|
||||||
language:
|
language:
|
||||||
$ref: '#/components/schemas/VideoConstantString'
|
$ref: '#/components/schemas/VideoConstantString'
|
||||||
privacy:
|
privacy:
|
||||||
$ref: '#/components/schemas/VideoPrivacy'
|
$ref: '#/components/schemas/VideoPrivacyConstant'
|
||||||
description:
|
description:
|
||||||
type: string
|
type: string
|
||||||
duration:
|
duration:
|
||||||
|
|
Loading…
Reference in New Issue