Fix docs of the Translation entity
The poll attribute is an object, not an array.
This commit is contained in:
parent
c20d658062
commit
90b05efa07
|
@ -20,7 +20,7 @@ Translation of status with content warning and media
|
|||
"spoiler_text": "Greatings ahead",
|
||||
"media_attachments": [
|
||||
{
|
||||
"id": 22345792,
|
||||
"id": "22345792",
|
||||
"description": "Status author waving at the camera"
|
||||
}
|
||||
],
|
||||
|
@ -36,9 +36,8 @@ Translation of status with poll:
|
|||
"content": "<p>Should I stay or should I go?</p>",
|
||||
"spoiler_text": "",
|
||||
"media_attachments": [],
|
||||
"poll": [
|
||||
{
|
||||
"id": 34858,
|
||||
"poll": {
|
||||
"id": "34858",
|
||||
"options": [
|
||||
{
|
||||
"title": "Stay"
|
||||
|
@ -47,8 +46,7 @@ Translation of status with poll:
|
|||
"title": "Go"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
},
|
||||
"detected_source_language": "ja",
|
||||
"provider": "DeepL.com"
|
||||
}
|
||||
|
@ -73,8 +71,8 @@ Translation of status with poll:
|
|||
|
||||
### `poll` {#poll}
|
||||
|
||||
**Description:** The translated poll options of the status.\
|
||||
**Type:** Array\
|
||||
**Description:** The translated poll of the status.\
|
||||
**Type:** [Translation::Poll](#Poll)\
|
||||
**Version history:**\
|
||||
4.2.0 - added
|
||||
|
||||
|
@ -99,6 +97,22 @@ Translation of status with poll:
|
|||
**Version history:**\
|
||||
4.0.0 - added
|
||||
|
||||
## Translation::Poll attributes {#Poll}
|
||||
|
||||
### `id` {#Poll-id}
|
||||
|
||||
**Description:** The ID of the Poll.\
|
||||
**Type:** String (cast from an integer, but not guaranteed to be a number)\
|
||||
**Version history:**\
|
||||
4.2.0 - added
|
||||
|
||||
### `options` {#Poll-options}
|
||||
|
||||
**Description:** The translated poll options.\
|
||||
**Type:** Array\
|
||||
**Version history:**\
|
||||
4.2.0 - added
|
||||
|
||||
## See also
|
||||
|
||||
{{< page-relref ref="methods/statuses#translate" caption="POST /api/v1/statuses/:id/translate" >}}
|
||||
|
|
Loading…
Reference in New Issue