From dceaa10a435a458b7ea6b11c366b1bbe0f61d4f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Sat, 22 Apr 2023 00:28:38 +0900 Subject: [PATCH] add tag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/openapi-3.0.yaml | 7 +++++++ dist/paths/bookmarks.yaml | 2 ++ dist/paths/follow.yaml | 4 ++++ dist/paths/timeline.yaml | 6 ++++++ dist/paths/tweet.yaml | 2 ++ dist/paths/user.yaml | 2 ++ dist/paths/usertweets.yaml | 8 ++++++++ dist/schemas/tweet.yaml | 3 +++ src/openapi/openapi-3.0.yaml | 7 +++++++ src/openapi/paths/bookmarks.yaml | 2 ++ src/openapi/paths/follow.yaml | 4 ++++ src/openapi/paths/timeline.yaml | 6 ++++++ src/openapi/paths/tweet.yaml | 2 ++ src/openapi/paths/user.yaml | 2 ++ src/openapi/paths/usertweets.yaml | 8 ++++++++ 15 files changed, 65 insertions(+) diff --git a/dist/openapi-3.0.yaml b/dist/openapi-3.0.yaml index 73e8964..609c829 100644 --- a/dist/openapi-3.0.yaml +++ b/dist/openapi-3.0.yaml @@ -64,3 +64,10 @@ security: - CookieCt0: [] servers: - url: https://twitter.com/i/api/graphql +tags: +- description: response User + name: User +- description: response User list + name: UserList +- description: response tweet + name: Tweet diff --git a/dist/paths/bookmarks.yaml b/dist/paths/bookmarks.yaml index b33620b..b0f1328 100644 --- a/dist/paths/bookmarks.yaml +++ b/dist/paths/bookmarks.yaml @@ -134,3 +134,5 @@ paths: x-xss-protection: schema: type: integer + tags: + - Tweet diff --git a/dist/paths/follow.yaml b/dist/paths/follow.yaml index 3b398f5..ebc9dba 100644 --- a/dist/paths/follow.yaml +++ b/dist/paths/follow.yaml @@ -150,6 +150,8 @@ paths: x-xss-protection: schema: type: integer + tags: + - UserList /JpFFCTBPxYVlDqMUr9twzQ/Followers: get: description: get user list of following @@ -262,3 +264,5 @@ paths: x-xss-protection: schema: type: integer + tags: + - UserList diff --git a/dist/paths/timeline.yaml b/dist/paths/timeline.yaml index 6e5bf52..1d91b5a 100644 --- a/dist/paths/timeline.yaml +++ b/dist/paths/timeline.yaml @@ -158,6 +158,8 @@ paths: x-xss-protection: schema: type: integer + tags: + - Tweet /HCosKfLNW1AcOo3la3mMgg/HomeTimeline: get: description: get tweet list of timeline @@ -270,6 +272,8 @@ paths: x-xss-protection: schema: type: integer + tags: + - Tweet /zhX91JE87mWvfprhYE97xA/HomeLatestTimeline: get: description: get tweet list of timeline @@ -382,3 +386,5 @@ paths: x-xss-protection: schema: type: integer + tags: + - Tweet diff --git a/dist/paths/tweet.yaml b/dist/paths/tweet.yaml index 72af010..0e840ba 100644 --- a/dist/paths/tweet.yaml +++ b/dist/paths/tweet.yaml @@ -131,3 +131,5 @@ paths: x-xss-protection: schema: type: integer + tags: + - Tweet diff --git a/dist/paths/user.yaml b/dist/paths/user.yaml index 28a6a9b..1f6be18 100644 --- a/dist/paths/user.yaml +++ b/dist/paths/user.yaml @@ -120,3 +120,5 @@ paths: x-xss-protection: schema: type: integer + tags: + - User diff --git a/dist/paths/usertweets.yaml b/dist/paths/usertweets.yaml index 81a924d..1e15d0d 100644 --- a/dist/paths/usertweets.yaml +++ b/dist/paths/usertweets.yaml @@ -145,6 +145,8 @@ paths: x-xss-protection: schema: type: integer + tags: + - Tweet /HuTx74BxAnezK1gWvYY7zg/UserTweets: get: description: get user tweets @@ -258,6 +260,8 @@ paths: x-xss-protection: schema: type: integer + tags: + - Tweet /RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies: get: description: get user replies tweets @@ -370,6 +374,8 @@ paths: x-xss-protection: schema: type: integer + tags: + - Tweet /YqiE3JL1KNgf9nSljYdxaA/UserMedia: get: description: get user media tweets @@ -483,3 +489,5 @@ paths: x-xss-protection: schema: type: integer + tags: + - Tweet diff --git a/dist/schemas/tweet.yaml b/dist/schemas/tweet.yaml index aa3547a..f1447b7 100644 --- a/dist/schemas/tweet.yaml +++ b/dist/schemas/tweet.yaml @@ -34,6 +34,8 @@ components: type: boolean legacy: $ref: '#/components/schemas/TweetLegacy' + quoted_status_result: + $ref: ./content.yaml#/components/schemas/ItemResult rest_id: pattern: ^[0-9]+$ type: string @@ -55,6 +57,7 @@ components: - is_translatable - legacy - views + - quoted_status_result TweetLegacy: properties: bookmark_count: diff --git a/src/openapi/openapi-3.0.yaml b/src/openapi/openapi-3.0.yaml index 5debcbe..97c0c73 100644 --- a/src/openapi/openapi-3.0.yaml +++ b/src/openapi/openapi-3.0.yaml @@ -55,3 +55,10 @@ security: - ClientLanguage: [] - CookieAuthToken: [] - CookieCt0: [] +tags: + - name: User + description: response User + - name: UserList + description: response User list + - name: Tweet + description: response tweet diff --git a/src/openapi/paths/bookmarks.yaml b/src/openapi/paths/bookmarks.yaml index 186860c..27d2915 100644 --- a/src/openapi/paths/bookmarks.yaml +++ b/src/openapi/paths/bookmarks.yaml @@ -15,6 +15,8 @@ paths: application/json: schema: $ref: "#/components/schemas/BookmarksResponse" + tags: + - "Tweet" components: schemas: diff --git a/src/openapi/paths/follow.yaml b/src/openapi/paths/follow.yaml index e3f9913..1e3bf83 100644 --- a/src/openapi/paths/follow.yaml +++ b/src/openapi/paths/follow.yaml @@ -15,6 +15,8 @@ paths: application/json: schema: $ref: "#/components/schemas/FollowResponse" + tags: + - "UserList" /{{FollowersQuery}}/Followers: get: @@ -27,6 +29,8 @@ paths: application/json: schema: $ref: "#/components/schemas/FollowResponse" + tags: + - "UserList" components: schemas: diff --git a/src/openapi/paths/timeline.yaml b/src/openapi/paths/timeline.yaml index ccdc000..e41fb64 100644 --- a/src/openapi/paths/timeline.yaml +++ b/src/openapi/paths/timeline.yaml @@ -15,6 +15,8 @@ paths: application/json: schema: $ref: "#/components/schemas/TimelineResponse" + tags: + - "Tweet" /{{HomeLatestTimelineQuery}}/HomeLatestTimeline: get: @@ -27,6 +29,8 @@ paths: application/json: schema: $ref: "#/components/schemas/TimelineResponse" + tags: + - "Tweet" /{{ListLatestTweetsTimelineQuery}}/ListLatestTweetsTimeline: get: @@ -39,6 +43,8 @@ paths: application/json: schema: $ref: "#/components/schemas/ListTweetsTimelineResponse" + tags: + - "Tweet" components: schemas: diff --git a/src/openapi/paths/tweet.yaml b/src/openapi/paths/tweet.yaml index c602a67..24b3d0b 100644 --- a/src/openapi/paths/tweet.yaml +++ b/src/openapi/paths/tweet.yaml @@ -15,6 +15,8 @@ paths: application/json: schema: $ref: "#/components/schemas/TweetDetailResponse" + tags: + - "Tweet" components: schemas: diff --git a/src/openapi/paths/user.yaml b/src/openapi/paths/user.yaml index 163d331..38affb2 100644 --- a/src/openapi/paths/user.yaml +++ b/src/openapi/paths/user.yaml @@ -15,6 +15,8 @@ paths: application/json: schema: $ref: "#/components/schemas/UserResponse" + tags: + - "User" components: schemas: diff --git a/src/openapi/paths/usertweets.yaml b/src/openapi/paths/usertweets.yaml index 5cb2def..0bdc02d 100644 --- a/src/openapi/paths/usertweets.yaml +++ b/src/openapi/paths/usertweets.yaml @@ -15,6 +15,8 @@ paths: application/json: schema: $ref: "#/components/schemas/UserTweetsResponse" + tags: + - "Tweet" /{{UserTweetsAndRepliesQuery}}/UserTweetsAndReplies: get: @@ -27,6 +29,8 @@ paths: application/json: schema: $ref: "#/components/schemas/UserTweetsResponse" + tags: + - "Tweet" /{{UserMediaQuery}}/UserMedia: get: @@ -39,6 +43,8 @@ paths: application/json: schema: $ref: "#/components/schemas/UserTweetsResponse" + tags: + - "Tweet" /{{LikesQuery}}/Likes: get: @@ -51,6 +57,8 @@ paths: application/json: schema: $ref: "#/components/schemas/UserTweetsResponse" + tags: + - "Tweet" components: schemas: