mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
buid
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
14ecb9a5f4
commit
20816336e5
6 changed files with 16 additions and 2 deletions
6
dist/schemas/tweet.yaml
vendored
6
dist/schemas/tweet.yaml
vendored
|
|
@ -122,15 +122,21 @@ components:
|
||||||
- retweeted
|
- retweeted
|
||||||
- user_id_str
|
- user_id_str
|
||||||
- id_str
|
- id_str
|
||||||
|
TweetTombstone:
|
||||||
|
properties:
|
||||||
|
__typename:
|
||||||
|
$ref: ./typename.yaml#/components/schemas/TypeName
|
||||||
TweetUnion:
|
TweetUnion:
|
||||||
discriminator:
|
discriminator:
|
||||||
mapping":
|
mapping":
|
||||||
Tweet: '#/components/schemas/Tweet'
|
Tweet: '#/components/schemas/Tweet'
|
||||||
|
TweetTombstone: '#/components/schemas/TweetTombstone'
|
||||||
TweetWithVisibilityResults: '#/components/schemas/TweetWithVisibilityResults'
|
TweetWithVisibilityResults: '#/components/schemas/TweetWithVisibilityResults'
|
||||||
propertyName: __typename
|
propertyName: __typename
|
||||||
oneOf:
|
oneOf:
|
||||||
- $ref: '#/components/schemas/Tweet'
|
- $ref: '#/components/schemas/Tweet'
|
||||||
- $ref: '#/components/schemas/TweetWithVisibilityResults'
|
- $ref: '#/components/schemas/TweetWithVisibilityResults'
|
||||||
|
- $ref: '#/components/schemas/TweetTombstone'
|
||||||
TweetWithVisibilityResults:
|
TweetWithVisibilityResults:
|
||||||
properties:
|
properties:
|
||||||
__typename:
|
__typename:
|
||||||
|
|
|
||||||
1
dist/schemas/typename.yaml
vendored
1
dist/schemas/typename.yaml
vendored
|
|
@ -8,6 +8,7 @@ components:
|
||||||
- TimelineTimelineCursor
|
- TimelineTimelineCursor
|
||||||
- TweetWithVisibilityResults
|
- TweetWithVisibilityResults
|
||||||
- TimelineTimelineModule
|
- TimelineTimelineModule
|
||||||
|
- TweetTombstone
|
||||||
- Tweet
|
- Tweet
|
||||||
- User
|
- User
|
||||||
type: string
|
type: string
|
||||||
|
|
|
||||||
1
dist/schemas/user.yaml
vendored
1
dist/schemas/user.yaml
vendored
|
|
@ -36,7 +36,6 @@ components:
|
||||||
required:
|
required:
|
||||||
- __typename
|
- __typename
|
||||||
- affiliates_highlighted_label
|
- affiliates_highlighted_label
|
||||||
- has_graduated_access
|
|
||||||
- id
|
- id
|
||||||
- is_blue_verified
|
- is_blue_verified
|
||||||
- legacy
|
- legacy
|
||||||
|
|
|
||||||
|
|
@ -11,11 +11,13 @@ components:
|
||||||
oneOf:
|
oneOf:
|
||||||
- $ref: "#/components/schemas/Tweet"
|
- $ref: "#/components/schemas/Tweet"
|
||||||
- $ref: "#/components/schemas/TweetWithVisibilityResults"
|
- $ref: "#/components/schemas/TweetWithVisibilityResults"
|
||||||
|
- $ref: "#/components/schemas/TweetTombstone"
|
||||||
discriminator:
|
discriminator:
|
||||||
propertyName: __typename
|
propertyName: __typename
|
||||||
mapping": # deprecated
|
mapping": # deprecated
|
||||||
Tweet: "#/components/schemas/Tweet"
|
Tweet: "#/components/schemas/Tweet"
|
||||||
TweetWithVisibilityResults: "#/components/schemas/TweetWithVisibilityResults"
|
TweetWithVisibilityResults: "#/components/schemas/TweetWithVisibilityResults"
|
||||||
|
TweetTombstone: "#/components/schemas/TweetTombstone"
|
||||||
|
|
||||||
TweetWithVisibilityResults:
|
TweetWithVisibilityResults:
|
||||||
required:
|
required:
|
||||||
|
|
@ -27,6 +29,12 @@ components:
|
||||||
tweet:
|
tweet:
|
||||||
$ref: "#/components/schemas/Tweet"
|
$ref: "#/components/schemas/Tweet"
|
||||||
|
|
||||||
|
TweetTombstone: #remove tweet
|
||||||
|
properties:
|
||||||
|
__typename:
|
||||||
|
$ref: "./typename.yaml#/components/schemas/TypeName" # TweetWithVisibilityResults
|
||||||
|
# todo
|
||||||
|
|
||||||
Tweet:
|
Tweet:
|
||||||
required:
|
required:
|
||||||
- "rest_id"
|
- "rest_id"
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ components:
|
||||||
TimelineTimelineCursor,
|
TimelineTimelineCursor,
|
||||||
TweetWithVisibilityResults,
|
TweetWithVisibilityResults,
|
||||||
TimelineTimelineModule,
|
TimelineTimelineModule,
|
||||||
|
TweetTombstone,
|
||||||
Tweet,
|
Tweet,
|
||||||
User,
|
User,
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,6 @@ components:
|
||||||
required:
|
required:
|
||||||
- "__typename"
|
- "__typename"
|
||||||
- "affiliates_highlighted_label"
|
- "affiliates_highlighted_label"
|
||||||
- "has_graduated_access"
|
|
||||||
- "id"
|
- "id"
|
||||||
- "is_blue_verified"
|
- "is_blue_verified"
|
||||||
- "legacy"
|
- "legacy"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue