1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 15:40:26 +01:00

Merge branch 'main' into dev

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-09-01 15:26:48 +09:00
commit 6394006bc1
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
22 changed files with 140 additions and 47 deletions

View file

@ -137,11 +137,13 @@ security:
servers:
- url: https://twitter.com/i/api
tags:
- description: response User
- description: Responses containing User objects.
name: user
- description: response User list
- description: Responses containing List[User] objects.
name: users
- description: Responses containing instruction objects.
name: user-list
- description: response tweet
- description: Responses containing instruction objects.
name: tweet
- description: post
name: post

View file

@ -94,7 +94,6 @@ paths:
schema:
oneOf:
- $ref: '#/components/schemas/OtherResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
tags:
- other

View file

@ -335,4 +335,4 @@ paths:
schema:
type: string
tags:
- user
- users

View file

@ -14,6 +14,7 @@ components:
- TweetUnavailable
- Tweet
- User
- UserUnavailable
type: string
info:
title: Twitter OpenAPI

View file

@ -165,10 +165,7 @@ components:
- entities
- fast_followers_count
- favourites_count
- follow_request_sent
- followed_by
- followers_count
- following
- friends_count
- has_custom_timelines
- is_translator
@ -178,12 +175,10 @@ components:
- muting
- name
- normal_followers_count
- notifications
- pinned_tweet_ids_str
- possibly_sensitive
- profile_image_url_https
- profile_interstitial_type
- protected
- screen_name
- status
- statuses_count
@ -199,9 +194,27 @@ components:
UserResults:
properties:
result:
$ref: '#/components/schemas/User'
$ref: '#/components/schemas/UserUnion'
required:
- result
UserUnavailable:
properties:
__typename:
$ref: ./typename.yaml#/components/schemas/TypeName
reason:
type: string
required:
- __typename
- reason
UserUnion:
discriminator:
mapping":
User: '#/components/schemas/User'
UserUnavailable: '#/components/schemas/UserUnavailable'
propertyName: __typename
oneOf:
- $ref: '#/components/schemas/User'
- $ref: '#/components/schemas/UserUnavailable'
info:
title: Twitter OpenAPI
version: 0.0.1