From 65b2611d8b7c01e71b88e1d8a0f19fc5afdb6e00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Thu, 20 Apr 2023 09:11:55 +0900 Subject: [PATCH 1/2] remove tag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/openapi-3.0.yaml | 27 --------------------------- dist/paths/follow.yaml | 6 ------ dist/paths/profile.yaml | 3 --- dist/paths/timeline.yaml | 12 ------------ dist/paths/tweet.yaml | 3 --- dist/paths/user.yaml | 3 --- dist/paths/usertweets.yaml | 12 ------------ src/openapi/openapi-3.0.yaml | 30 ------------------------------ src/openapi/paths/follow.yaml | 6 ------ src/openapi/paths/profile.yaml | 3 --- src/openapi/paths/timeline.yaml | 12 ------------ src/openapi/paths/tweet.yaml | 3 --- src/openapi/paths/user.yaml | 3 --- src/openapi/paths/usertweets.yaml | 12 ------------ 14 files changed, 135 deletions(-) diff --git a/dist/openapi-3.0.yaml b/dist/openapi-3.0.yaml index 07ef533..4368e1b 100644 --- a/dist/openapi-3.0.yaml +++ b/dist/openapi-3.0.yaml @@ -64,30 +64,3 @@ security: - CookieCt0: [] servers: - url: https://twitter.com/i/api/graphql -tags: -- description: timeline - name: timeline -- description: tweet - name: tweet -- description: user - name: user -- description: bookmark - name: bookmark -- description: follow - name: follow -- description: search - name: search -- description: dm - name: dm -- description: settings - name: settings -- description: notify - name: notify -- description: login session required - name: login required -- description: graphql - name: graphql -- description: login flow - name: login-flow -- description: report flow - name: report-flow diff --git a/dist/paths/follow.yaml b/dist/paths/follow.yaml index b471af3..8c1b452 100644 --- a/dist/paths/follow.yaml +++ b/dist/paths/follow.yaml @@ -150,9 +150,6 @@ paths: x-xss-protection: schema: type: integer - tags: - - follow - - graphql /b22I8WSfQ8H4Ev8486xAlQ/Following: get: description: get user list of followers @@ -265,6 +262,3 @@ paths: x-xss-protection: schema: type: integer - tags: - - follow - - graphql diff --git a/dist/paths/profile.yaml b/dist/paths/profile.yaml index 1fc0679..b5fd6f0 100644 --- a/dist/paths/profile.yaml +++ b/dist/paths/profile.yaml @@ -164,6 +164,3 @@ paths: x-xss-protection: schema: type: integer - tags: - - user - - graphql diff --git a/dist/paths/timeline.yaml b/dist/paths/timeline.yaml index 5ae6ba3..6e5bf52 100644 --- a/dist/paths/timeline.yaml +++ b/dist/paths/timeline.yaml @@ -158,10 +158,6 @@ paths: x-xss-protection: schema: type: integer - tags: - - timeline - - login-required - - graphql /HCosKfLNW1AcOo3la3mMgg/HomeTimeline: get: description: get tweet list of timeline @@ -274,10 +270,6 @@ paths: x-xss-protection: schema: type: integer - tags: - - timeline - - login-required - - graphql /zhX91JE87mWvfprhYE97xA/HomeLatestTimeline: get: description: get tweet list of timeline @@ -390,7 +382,3 @@ paths: x-xss-protection: schema: type: integer - tags: - - timeline - - login-required - - graphql diff --git a/dist/paths/tweet.yaml b/dist/paths/tweet.yaml index 1663757..fc19dcf 100644 --- a/dist/paths/tweet.yaml +++ b/dist/paths/tweet.yaml @@ -131,6 +131,3 @@ paths: x-xss-protection: schema: type: integer - tags: - - bookmark - - graphql diff --git a/dist/paths/user.yaml b/dist/paths/user.yaml index 4e3e4e3..28a6a9b 100644 --- a/dist/paths/user.yaml +++ b/dist/paths/user.yaml @@ -120,6 +120,3 @@ paths: x-xss-protection: schema: type: integer - tags: - - user - - graphql diff --git a/dist/paths/usertweets.yaml b/dist/paths/usertweets.yaml index 3c433b4..81a924d 100644 --- a/dist/paths/usertweets.yaml +++ b/dist/paths/usertweets.yaml @@ -145,9 +145,6 @@ paths: x-xss-protection: schema: type: integer - tags: - - user - - graphql /HuTx74BxAnezK1gWvYY7zg/UserTweets: get: description: get user tweets @@ -261,9 +258,6 @@ paths: x-xss-protection: schema: type: integer - tags: - - user - - graphql /RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies: get: description: get user replies tweets @@ -376,9 +370,6 @@ paths: x-xss-protection: schema: type: integer - tags: - - user - - graphql /YqiE3JL1KNgf9nSljYdxaA/UserMedia: get: description: get user media tweets @@ -492,6 +483,3 @@ paths: x-xss-protection: schema: type: integer - tags: - - user - - graphql diff --git a/src/openapi/openapi-3.0.yaml b/src/openapi/openapi-3.0.yaml index 9fa36b8..5debcbe 100644 --- a/src/openapi/openapi-3.0.yaml +++ b/src/openapi/openapi-3.0.yaml @@ -47,36 +47,6 @@ components: name: auth_token description: "HttpOnly cookie" -tags: - - name: timeline - description: timeline - - name: tweet - description: tweet - - name: user - description: user - - name: bookmark - description: bookmark - - name: follow - description: follow - - name: search - description: search - - name: dm - description: dm - - name: settings - description: settings - - name: notify - description: notify - - # === - - name: login required - description: login session required - - name: graphql - description: graphql - - name: login-flow - description: login flow - - name: report-flow - description: report flow - security: - bearerAuth: [] - CsrfToken: [] diff --git a/src/openapi/paths/follow.yaml b/src/openapi/paths/follow.yaml index d8495e3..e3f9913 100644 --- a/src/openapi/paths/follow.yaml +++ b/src/openapi/paths/follow.yaml @@ -15,9 +15,6 @@ paths: application/json: schema: $ref: "#/components/schemas/FollowResponse" - tags: - - "follow" - - "graphql" /{{FollowersQuery}}/Followers: get: @@ -30,9 +27,6 @@ paths: application/json: schema: $ref: "#/components/schemas/FollowResponse" - tags: - - "follow" - - "graphql" components: schemas: diff --git a/src/openapi/paths/profile.yaml b/src/openapi/paths/profile.yaml index 0132c98..07ad419 100644 --- a/src/openapi/paths/profile.yaml +++ b/src/openapi/paths/profile.yaml @@ -15,9 +15,6 @@ paths: application/json: schema: $ref: "#/components/schemas/ProfileResponse" - tags: - - "user" - - "graphql" components: schemas: diff --git a/src/openapi/paths/timeline.yaml b/src/openapi/paths/timeline.yaml index 2d37cd5..ccdc000 100644 --- a/src/openapi/paths/timeline.yaml +++ b/src/openapi/paths/timeline.yaml @@ -15,10 +15,6 @@ paths: application/json: schema: $ref: "#/components/schemas/TimelineResponse" - tags: - - "timeline" - - "login-required" - - "graphql" /{{HomeLatestTimelineQuery}}/HomeLatestTimeline: get: @@ -31,10 +27,6 @@ paths: application/json: schema: $ref: "#/components/schemas/TimelineResponse" - tags: - - "timeline" - - "login-required" - - "graphql" /{{ListLatestTweetsTimelineQuery}}/ListLatestTweetsTimeline: get: @@ -47,10 +39,6 @@ paths: application/json: schema: $ref: "#/components/schemas/ListTweetsTimelineResponse" - tags: - - "timeline" - - "login-required" - - "graphql" components: schemas: diff --git a/src/openapi/paths/tweet.yaml b/src/openapi/paths/tweet.yaml index cfe677b..a799881 100644 --- a/src/openapi/paths/tweet.yaml +++ b/src/openapi/paths/tweet.yaml @@ -15,9 +15,6 @@ paths: application/json: schema: $ref: "#/components/schemas/TweetDetailResponse" - tags: - - "bookmark" - - "graphql" components: schemas: diff --git a/src/openapi/paths/user.yaml b/src/openapi/paths/user.yaml index 6c85550..163d331 100644 --- a/src/openapi/paths/user.yaml +++ b/src/openapi/paths/user.yaml @@ -15,9 +15,6 @@ paths: application/json: schema: $ref: "#/components/schemas/UserResponse" - tags: - - "user" - - "graphql" components: schemas: diff --git a/src/openapi/paths/usertweets.yaml b/src/openapi/paths/usertweets.yaml index aae98e2..5cb2def 100644 --- a/src/openapi/paths/usertweets.yaml +++ b/src/openapi/paths/usertweets.yaml @@ -15,9 +15,6 @@ paths: application/json: schema: $ref: "#/components/schemas/UserTweetsResponse" - tags: - - "user" - - "graphql" /{{UserTweetsAndRepliesQuery}}/UserTweetsAndReplies: get: @@ -30,9 +27,6 @@ paths: application/json: schema: $ref: "#/components/schemas/UserTweetsResponse" - tags: - - "user" - - "graphql" /{{UserMediaQuery}}/UserMedia: get: @@ -45,9 +39,6 @@ paths: application/json: schema: $ref: "#/components/schemas/UserTweetsResponse" - tags: - - "user" - - "graphql" /{{LikesQuery}}/Likes: get: @@ -60,9 +51,6 @@ paths: application/json: schema: $ref: "#/components/schemas/UserTweetsResponse" - tags: - - "user" - - "graphql" components: schemas: From 598730326de47225e39f666123229c1689495b89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Thu, 20 Apr 2023 09:26:44 +0900 Subject: [PATCH 2/2] fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/paths/bookmarks.yaml | 3 --- dist/paths/tweet.yaml | 14 +++++++------- src/openapi/paths/bookmarks.yaml | 3 --- src/openapi/paths/tweet.yaml | 4 ++-- 4 files changed, 9 insertions(+), 15 deletions(-) diff --git a/dist/paths/bookmarks.yaml b/dist/paths/bookmarks.yaml index ffa85be..b33620b 100644 --- a/dist/paths/bookmarks.yaml +++ b/dist/paths/bookmarks.yaml @@ -134,6 +134,3 @@ paths: x-xss-protection: schema: type: integer - tags: - - bookmark - - graphql diff --git a/dist/paths/tweet.yaml b/dist/paths/tweet.yaml index fc19dcf..72af010 100644 --- a/dist/paths/tweet.yaml +++ b/dist/paths/tweet.yaml @@ -1,17 +1,17 @@ components: schemas: - BookmarksResponseData: + TweetDetailResponse: + properties: + data: + $ref: '#/components/schemas/TweetDetailResponseData' + required: + - data + TweetDetailResponseData: properties: threaded_conversation_with_injections_v2: $ref: ./../schemas/timeline.yaml#/components/schemas/Timeline required: - threaded_conversation_with_injections_v2 - TweetDetailResponse: - properties: - data: - $ref: '#/components/schemas/BookmarksResponseData' - required: - - data info: title: Twitter OpenAPI version: 0.0.1 diff --git a/src/openapi/paths/bookmarks.yaml b/src/openapi/paths/bookmarks.yaml index 5fabdd2..186860c 100644 --- a/src/openapi/paths/bookmarks.yaml +++ b/src/openapi/paths/bookmarks.yaml @@ -15,9 +15,6 @@ paths: application/json: schema: $ref: "#/components/schemas/BookmarksResponse" - tags: - - "bookmark" - - "graphql" components: schemas: diff --git a/src/openapi/paths/tweet.yaml b/src/openapi/paths/tweet.yaml index a799881..c602a67 100644 --- a/src/openapi/paths/tweet.yaml +++ b/src/openapi/paths/tweet.yaml @@ -23,9 +23,9 @@ components: - "data" properties: data: - $ref: "#/components/schemas/BookmarksResponseData" + $ref: "#/components/schemas/TweetDetailResponseData" - BookmarksResponseData: + TweetDetailResponseData: required: - "threaded_conversation_with_injections_v2" properties: