mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-12 08:00:27 +01:00
Merge branch 'main' into dev
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
commit
6394006bc1
22 changed files with 140 additions and 47 deletions
|
|
@ -21,4 +21,5 @@ components:
|
|||
TweetUnavailable,
|
||||
Tweet,
|
||||
User,
|
||||
UserUnavailable,
|
||||
]
|
||||
|
|
|
|||
|
|
@ -17,7 +17,17 @@ components:
|
|||
- "result"
|
||||
properties:
|
||||
result:
|
||||
$ref: "#/components/schemas/User"
|
||||
$ref: "#/components/schemas/UserUnion"
|
||||
|
||||
UserUnion:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/User"
|
||||
- $ref: "#/components/schemas/UserUnavailable"
|
||||
discriminator:
|
||||
propertyName: __typename
|
||||
mapping": # deprecated
|
||||
User: "#/components/schemas/User"
|
||||
UserUnavailable: "#/components/schemas/UserUnavailable"
|
||||
|
||||
User:
|
||||
required:
|
||||
|
|
@ -79,10 +89,10 @@ components:
|
|||
- "entities"
|
||||
- "fast_followers_count"
|
||||
- "favourites_count"
|
||||
- "follow_request_sent"
|
||||
- "followed_by"
|
||||
# 31 # - "follow_request_sent"
|
||||
# 31 # - "followed_by"
|
||||
- "followers_count"
|
||||
- "following"
|
||||
# 31 # - "following"
|
||||
- "friends_count"
|
||||
- "has_custom_timelines"
|
||||
- "is_translator"
|
||||
|
|
@ -92,12 +102,12 @@ components:
|
|||
- "muting"
|
||||
- "name"
|
||||
- "normal_followers_count"
|
||||
- "notifications"
|
||||
# 31 # - "notifications"
|
||||
- "pinned_tweet_ids_str"
|
||||
- "possibly_sensitive"
|
||||
- "profile_image_url_https"
|
||||
- "profile_interstitial_type"
|
||||
- "protected"
|
||||
# 31 # - "protected"
|
||||
- "screen_name"
|
||||
- "status"
|
||||
- "statuses_count"
|
||||
|
|
@ -211,3 +221,13 @@ components:
|
|||
want_retweets:
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
UserUnavailable:
|
||||
required:
|
||||
- "__typename"
|
||||
- "reason"
|
||||
properties:
|
||||
__typename:
|
||||
$ref: "./typename.yaml#/components/schemas/TypeName" # UserUnavailable
|
||||
reason:
|
||||
type: string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue