mirror of https://github.com/Chocobozzz/PeerTube
factorize uuid type in openapi spec
parent
4ca669e361
commit
f880a5e704
|
@ -2385,7 +2385,7 @@ paths:
|
||||||
id:
|
id:
|
||||||
type: integer
|
type: integer
|
||||||
uuid:
|
uuid:
|
||||||
type: string
|
$ref: '#/components/schemas/UUIDv4'
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
multipart/form-data:
|
multipart/form-data:
|
||||||
|
@ -3753,9 +3753,7 @@ components:
|
||||||
- type: integer
|
- type: integer
|
||||||
minimum: 0
|
minimum: 0
|
||||||
example: 42
|
example: 42
|
||||||
- type: string
|
- $ref: '#/components/schemas/UUIDv4'
|
||||||
format: uuid
|
|
||||||
example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
|
|
||||||
playlistElementId:
|
playlistElementId:
|
||||||
name: playlistElementId
|
name: playlistElementId
|
||||||
in: path
|
in: path
|
||||||
|
@ -3983,6 +3981,16 @@ components:
|
||||||
moderator: Moderator scope
|
moderator: Moderator scope
|
||||||
user: User scope
|
user: User scope
|
||||||
schemas:
|
schemas:
|
||||||
|
UUIDv4:
|
||||||
|
type: string
|
||||||
|
format: uuid
|
||||||
|
example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
|
||||||
|
pattern: '^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$'
|
||||||
|
# the regex above limits the length;
|
||||||
|
# however, some tools might require explicit settings:
|
||||||
|
minLength: 36
|
||||||
|
maxLength: 36
|
||||||
|
|
||||||
VideoConstantNumber-Category:
|
VideoConstantNumber-Category:
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
|
@ -4250,9 +4258,7 @@ components:
|
||||||
id:
|
id:
|
||||||
type: integer
|
type: integer
|
||||||
uuid:
|
uuid:
|
||||||
type: string
|
$ref: '#/components/schemas/UUIDv4'
|
||||||
format: uuid
|
|
||||||
example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
|
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
minLength: 3
|
minLength: 3
|
||||||
|
@ -4263,9 +4269,7 @@ components:
|
||||||
type: integer
|
type: integer
|
||||||
example: 8
|
example: 8
|
||||||
uuid:
|
uuid:
|
||||||
type: string
|
$ref: '#/components/schemas/UUIDv4'
|
||||||
format: uuid
|
|
||||||
example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
|
|
||||||
isLive:
|
isLive:
|
||||||
type: boolean
|
type: boolean
|
||||||
createdAt:
|
createdAt:
|
||||||
|
@ -4433,9 +4437,7 @@ components:
|
||||||
type: string
|
type: string
|
||||||
format: url
|
format: url
|
||||||
uuid:
|
uuid:
|
||||||
type: string
|
$ref: '#/components/schemas/UUIDv4'
|
||||||
format: uuid
|
|
||||||
example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
|
|
||||||
redundancies:
|
redundancies:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -4544,9 +4546,7 @@ components:
|
||||||
minLength: 3
|
minLength: 3
|
||||||
maxLength: 120
|
maxLength: 120
|
||||||
uuid:
|
uuid:
|
||||||
type: string
|
$ref: '#/components/schemas/UUIDv4'
|
||||||
format: uuid
|
|
||||||
example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
|
|
||||||
description:
|
description:
|
||||||
type: string
|
type: string
|
||||||
minLength: 3
|
minLength: 3
|
||||||
|
@ -4579,9 +4579,7 @@ components:
|
||||||
id:
|
id:
|
||||||
type: integer
|
type: integer
|
||||||
uuid:
|
uuid:
|
||||||
type: string
|
$ref: '#/components/schemas/UUIDv4'
|
||||||
format: uuid
|
|
||||||
example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
|
|
||||||
VideoPlaylist:
|
VideoPlaylist:
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
|
@ -4597,9 +4595,7 @@ components:
|
||||||
minLength: 3
|
minLength: 3
|
||||||
maxLength: 1000
|
maxLength: 1000
|
||||||
uuid:
|
uuid:
|
||||||
type: string
|
$ref: '#/components/schemas/UUIDv4'
|
||||||
format: uuid
|
|
||||||
example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
|
|
||||||
displayName:
|
displayName:
|
||||||
type: string
|
type: string
|
||||||
minLength: 1
|
minLength: 1
|
||||||
|
@ -5196,9 +5192,7 @@ components:
|
||||||
type: integer
|
type: integer
|
||||||
example: 8
|
example: 8
|
||||||
uuid:
|
uuid:
|
||||||
type: string
|
$ref: '#/components/schemas/UUIDv4'
|
||||||
format: uuid
|
|
||||||
example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
|
|
||||||
CommentThreadResponse:
|
CommentThreadResponse:
|
||||||
properties:
|
properties:
|
||||||
total:
|
total:
|
||||||
|
|
Loading…
Reference in New Issue