mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-03-06 13:48:51 +01:00
[bugfix] Swagger: fix media_ids[] param for creating statuses (#3722)
This commit is contained in:
parent
a55bd6d2bd
commit
f5eee56bb1
2 changed files with 12 additions and 4 deletions
|
@ -10261,7 +10261,8 @@ paths:
|
||||||
name: status
|
name: status
|
||||||
type: string
|
type: string
|
||||||
x-go-name: Status
|
x-go-name: Status
|
||||||
- description: |-
|
- collectionFormat: multi
|
||||||
|
description: |-
|
||||||
Array of Attachment ids to be attached as media.
|
Array of Attachment ids to be attached as media.
|
||||||
If provided, status becomes optional, and poll cannot be used.
|
If provided, status becomes optional, and poll cannot be used.
|
||||||
|
|
||||||
|
@ -10270,10 +10271,12 @@ paths:
|
||||||
in: formData
|
in: formData
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
name: media_ids
|
name: media_ids[]
|
||||||
type: array
|
type: array
|
||||||
|
uniqueItems: true
|
||||||
x-go-name: MediaIDs
|
x-go-name: MediaIDs
|
||||||
- description: |-
|
- collectionFormat: multi
|
||||||
|
description: |-
|
||||||
Array of possible poll answers.
|
Array of possible poll answers.
|
||||||
If provided, media_ids cannot be used, and poll[expires_in] must be provided.
|
If provided, media_ids cannot be used, and poll[expires_in] must be provided.
|
||||||
in: formData
|
in: formData
|
||||||
|
@ -10281,6 +10284,7 @@ paths:
|
||||||
type: string
|
type: string
|
||||||
name: poll[options][]
|
name: poll[options][]
|
||||||
type: array
|
type: array
|
||||||
|
uniqueItems: true
|
||||||
x-go-name: PollOptions
|
x-go-name: PollOptions
|
||||||
- description: |-
|
- description: |-
|
||||||
Duration the poll should be open, in seconds.
|
Duration the poll should be open, in seconds.
|
||||||
|
|
|
@ -75,7 +75,7 @@
|
||||||
// type: string
|
// type: string
|
||||||
// in: formData
|
// in: formData
|
||||||
// -
|
// -
|
||||||
// name: media_ids
|
// name: media_ids[]
|
||||||
// x-go-name: MediaIDs
|
// x-go-name: MediaIDs
|
||||||
// description: |-
|
// description: |-
|
||||||
// Array of Attachment ids to be attached as media.
|
// Array of Attachment ids to be attached as media.
|
||||||
|
@ -87,6 +87,8 @@
|
||||||
// items:
|
// items:
|
||||||
// type: string
|
// type: string
|
||||||
// in: formData
|
// in: formData
|
||||||
|
// collectionFormat: multi
|
||||||
|
// uniqueItems: true
|
||||||
// -
|
// -
|
||||||
// name: poll[options][]
|
// name: poll[options][]
|
||||||
// x-go-name: PollOptions
|
// x-go-name: PollOptions
|
||||||
|
@ -97,6 +99,8 @@
|
||||||
// items:
|
// items:
|
||||||
// type: string
|
// type: string
|
||||||
// in: formData
|
// in: formData
|
||||||
|
// collectionFormat: multi
|
||||||
|
// uniqueItems: true
|
||||||
// -
|
// -
|
||||||
// name: poll[expires_in]
|
// name: poll[expires_in]
|
||||||
// x-go-name: PollExpiresIn
|
// x-go-name: PollExpiresIn
|
||||||
|
|
Loading…
Reference in a new issue