mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
parent
860a2c4029
commit
6e8a424b5b
2 changed files with 26 additions and 17 deletions
|
|
@ -309,17 +309,7 @@ components:
|
|||
sizes:
|
||||
$ref: "#/components/schemas/MediaSizes"
|
||||
original_info:
|
||||
type: object
|
||||
properties:
|
||||
height:
|
||||
type: integer
|
||||
width:
|
||||
type: integer
|
||||
focus_rects:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
additionalProperties: true # todo
|
||||
$ref: "#/components/schemas/MediaOriginalInfo"
|
||||
|
||||
ExtendedEntities:
|
||||
required:
|
||||
|
|
@ -369,14 +359,11 @@ components:
|
|||
type: string
|
||||
format: uri
|
||||
additional_media_info:
|
||||
type: object
|
||||
additionalProperties: true # todo
|
||||
$ref: "#/components/schemas/AdditionalMediaInfo"
|
||||
mediaStats:
|
||||
type: object
|
||||
additionalProperties: true # todo
|
||||
$ref: "#/components/schemas/mediaStats"
|
||||
ext_media_availability:
|
||||
type: object
|
||||
additionalProperties: true # todo
|
||||
$ref: "#/components/schemas/extMediaAvailability"
|
||||
features:
|
||||
type: object
|
||||
sizes:
|
||||
|
|
@ -446,6 +433,27 @@ components:
|
|||
type: string
|
||||
format: uri
|
||||
|
||||
AdditionalMediaInfo:
|
||||
required:
|
||||
- "monetizable"
|
||||
properties:
|
||||
monetizable:
|
||||
type: boolean
|
||||
|
||||
mediaStats:
|
||||
required:
|
||||
- "viewCount"
|
||||
properties:
|
||||
viewCount:
|
||||
type: integer
|
||||
|
||||
extMediaAvailability:
|
||||
required:
|
||||
- "status"
|
||||
properties:
|
||||
status:
|
||||
type: string # enum Available
|
||||
|
||||
MediaSizes:
|
||||
required:
|
||||
- "large"
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ components:
|
|||
TweetTombstone,
|
||||
TimelinePrompt,
|
||||
TimelineMessagePrompt,
|
||||
TweetUnavailable,
|
||||
Tweet,
|
||||
User,
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue