mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 07:30:37 +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
|
|
@ -11,11 +11,13 @@ components:
|
|||
oneOf:
|
||||
- $ref: "#/components/schemas/Tweet"
|
||||
- $ref: "#/components/schemas/TweetWithVisibilityResults"
|
||||
- $ref: "#/components/schemas/TweetTombstone"
|
||||
discriminator:
|
||||
propertyName: __typename
|
||||
mapping": # deprecated
|
||||
Tweet: "#/components/schemas/Tweet"
|
||||
TweetWithVisibilityResults: "#/components/schemas/TweetWithVisibilityResults"
|
||||
TweetTombstone: "#/components/schemas/TweetTombstone"
|
||||
|
||||
TweetWithVisibilityResults:
|
||||
required:
|
||||
|
|
@ -27,6 +29,12 @@ components:
|
|||
tweet:
|
||||
$ref: "#/components/schemas/Tweet"
|
||||
|
||||
TweetTombstone: #remove tweet
|
||||
properties:
|
||||
__typename:
|
||||
$ref: "./typename.yaml#/components/schemas/TypeName" # TweetWithVisibilityResults
|
||||
# todo
|
||||
|
||||
Tweet:
|
||||
required:
|
||||
- "rest_id"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue