From 20816336e5793776a793eb3481e10aade322ef64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Sun, 23 Apr 2023 03:56:57 +0900 Subject: [PATCH] buid MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/schemas/tweet.yaml | 6 ++++++ dist/schemas/typename.yaml | 1 + dist/schemas/user.yaml | 1 - src/openapi/schemas/tweet.yaml | 8 ++++++++ src/openapi/schemas/typename.yaml | 1 + src/openapi/schemas/user.yaml | 1 - 6 files changed, 16 insertions(+), 2 deletions(-) diff --git a/dist/schemas/tweet.yaml b/dist/schemas/tweet.yaml index 70163c7..9756e51 100644 --- a/dist/schemas/tweet.yaml +++ b/dist/schemas/tweet.yaml @@ -122,15 +122,21 @@ components: - retweeted - user_id_str - id_str + TweetTombstone: + properties: + __typename: + $ref: ./typename.yaml#/components/schemas/TypeName TweetUnion: discriminator: mapping": Tweet: '#/components/schemas/Tweet' + TweetTombstone: '#/components/schemas/TweetTombstone' TweetWithVisibilityResults: '#/components/schemas/TweetWithVisibilityResults' propertyName: __typename oneOf: - $ref: '#/components/schemas/Tweet' - $ref: '#/components/schemas/TweetWithVisibilityResults' + - $ref: '#/components/schemas/TweetTombstone' TweetWithVisibilityResults: properties: __typename: diff --git a/dist/schemas/typename.yaml b/dist/schemas/typename.yaml index 42c9123..21121fc 100644 --- a/dist/schemas/typename.yaml +++ b/dist/schemas/typename.yaml @@ -8,6 +8,7 @@ components: - TimelineTimelineCursor - TweetWithVisibilityResults - TimelineTimelineModule + - TweetTombstone - Tweet - User type: string diff --git a/dist/schemas/user.yaml b/dist/schemas/user.yaml index fccfd97..d9bb43c 100644 --- a/dist/schemas/user.yaml +++ b/dist/schemas/user.yaml @@ -36,7 +36,6 @@ components: required: - __typename - affiliates_highlighted_label - - has_graduated_access - id - is_blue_verified - legacy diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index f34c1ce..620af9f 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -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" diff --git a/src/openapi/schemas/typename.yaml b/src/openapi/schemas/typename.yaml index 5cc88dc..f307af5 100644 --- a/src/openapi/schemas/typename.yaml +++ b/src/openapi/schemas/typename.yaml @@ -15,6 +15,7 @@ components: TimelineTimelineCursor, TweetWithVisibilityResults, TimelineTimelineModule, + TweetTombstone, Tweet, User, ] diff --git a/src/openapi/schemas/user.yaml b/src/openapi/schemas/user.yaml index 81a4abf..e4b54f6 100644 --- a/src/openapi/schemas/user.yaml +++ b/src/openapi/schemas/user.yaml @@ -23,7 +23,6 @@ components: required: - "__typename" - "affiliates_highlighted_label" - - "has_graduated_access" - "id" - "is_blue_verified" - "legacy"