mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
add TweetEditControl
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
bc05f30d3a
commit
7f3270cf8a
2 changed files with 30 additions and 2 deletions
|
|
@ -185,7 +185,7 @@ components:
|
|||
$ref: "#/components/schemas/SocialContext"
|
||||
userDisplayType:
|
||||
type: string
|
||||
enum: [User, UserDetailed]
|
||||
enum: [User, UserDetailed, SubscribableUser]
|
||||
user_results:
|
||||
$ref: "./user.yaml#/components/schemas/UserResults"
|
||||
|
||||
|
|
|
|||
|
|
@ -40,8 +40,8 @@ components:
|
|||
- "rest_id"
|
||||
- "core"
|
||||
- "edit_control"
|
||||
# - "edit_prespective"
|
||||
- "is_translatable"
|
||||
- "source"
|
||||
- "legacy"
|
||||
- "views"
|
||||
|
||||
|
|
@ -65,6 +65,8 @@ components:
|
|||
is_translatable:
|
||||
type: boolean
|
||||
default: false
|
||||
source:
|
||||
type: string # html (<a href="http://twitter.com/download/android" rel="nofollow">Twitter for Android</a>)
|
||||
legacy:
|
||||
$ref: "#/components/schemas/TweetLegacy"
|
||||
views:
|
||||
|
|
@ -87,6 +89,32 @@ components:
|
|||
edits_remaining:
|
||||
type: string
|
||||
pattern: "^[0-9]+$"
|
||||
initial_tweet_id:
|
||||
type: string
|
||||
pattern: "^[0-9]+$"
|
||||
edit_control_initial:
|
||||
$ref: "#/components/schemas/TweetEditControlInitial"
|
||||
|
||||
TweetEditControlInitial:
|
||||
required:
|
||||
- "edit_tweet_ids"
|
||||
- "editable_until_msecs"
|
||||
- "is_edit_eligible"
|
||||
- "edits_remaining"
|
||||
properties:
|
||||
edit_tweet_ids:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
pattern: "^[0-9]+$"
|
||||
editable_until_msecs:
|
||||
type: string
|
||||
pattern: "^[0-9]+$"
|
||||
is_edit_eligible:
|
||||
type: boolean
|
||||
edits_remaining:
|
||||
type: string
|
||||
pattern: "^[0-9]+$"
|
||||
|
||||
TweetEditPrespective:
|
||||
properties:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue