1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 15:40:26 +01:00

Merge pull request #26 from fa0311/add-error-handle

Add error handle
This commit is contained in:
ふぁ 2023-07-31 18:19:40 +09:00 committed by GitHub
commit 3c65f20141
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 234 additions and 78 deletions

View file

@ -91,7 +91,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/FollowResponse'
oneOf:
- $ref: '#/components/schemas/FollowResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -182,7 +184,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/FollowResponse'
oneOf:
- $ref: '#/components/schemas/FollowResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -264,7 +268,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/FollowResponse'
oneOf:
- $ref: '#/components/schemas/FollowResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:

View file

@ -90,7 +90,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/OtherResponse'
oneOf:
- $ref: '#/components/schemas/OtherResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
tags:
- other

View file

@ -181,7 +181,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateRetweetResponse'
oneOf:
- $ref: '#/components/schemas/CreateRetweetResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -375,7 +377,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateTweetResponse'
oneOf:
- $ref: '#/components/schemas/CreateTweetResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -449,7 +453,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteRetweetResponse'
oneOf:
- $ref: '#/components/schemas/DeleteRetweetResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -523,7 +529,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteTweetResponse'
oneOf:
- $ref: '#/components/schemas/DeleteTweetResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -597,7 +605,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/FavoriteTweetResponseData'
oneOf:
- $ref: '#/components/schemas/FavoriteTweetResponseData'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -671,7 +681,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/UnfavoriteTweetResponseData'
oneOf:
- $ref: '#/components/schemas/UnfavoriteTweetResponseData'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:

View file

@ -95,7 +95,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/ProfileResponse'
oneOf:
- $ref: '#/components/schemas/ProfileResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:

View file

@ -124,7 +124,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/TimelineResponse'
oneOf:
- $ref: '#/components/schemas/TimelineResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -206,7 +208,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/TimelineResponse'
oneOf:
- $ref: '#/components/schemas/TimelineResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -286,7 +290,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/ListLatestTweetsTimelineResponse'
oneOf:
- $ref: '#/components/schemas/ListLatestTweetsTimelineResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -377,7 +383,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/SearchTimelineResponse'
oneOf:
- $ref: '#/components/schemas/SearchTimelineResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:

View file

@ -96,7 +96,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/TweetFavoritersResponse'
oneOf:
- $ref: '#/components/schemas/TweetFavoritersResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -180,7 +182,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/TweetRetweetersResponse'
oneOf:
- $ref: '#/components/schemas/TweetRetweetersResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -266,7 +270,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/TweetDetailResponse'
oneOf:
- $ref: '#/components/schemas/TweetDetailResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:

View file

@ -68,7 +68,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/UserResponse'
oneOf:
- $ref: '#/components/schemas/UserResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -132,7 +134,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/UserResponse'
oneOf:
- $ref: '#/components/schemas/UserResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -196,7 +200,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/UsersResponse'
oneOf:
- $ref: '#/components/schemas/UsersResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:

View file

@ -120,7 +120,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/UserTweetsResponse'
oneOf:
- $ref: '#/components/schemas/UserTweetsResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -213,7 +215,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/UserHighlightsTweetsResponse'
oneOf:
- $ref: '#/components/schemas/UserHighlightsTweetsResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -297,7 +301,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/UserTweetsResponse'
oneOf:
- $ref: '#/components/schemas/UserTweetsResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -381,7 +387,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/UserTweetsResponse'
oneOf:
- $ref: '#/components/schemas/UserTweetsResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -463,7 +471,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/UserTweetsResponse'
oneOf:
- $ref: '#/components/schemas/UserTweetsResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:

View file

@ -183,7 +183,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/FollowResponse'
oneOf:
- $ref: '#/components/schemas/FollowResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -376,7 +378,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/FollowResponse'
oneOf:
- $ref: '#/components/schemas/FollowResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -550,7 +554,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/FollowResponse'
oneOf:
- $ref: '#/components/schemas/FollowResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:

View file

@ -90,7 +90,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/OtherResponse'
oneOf:
- $ref: '#/components/schemas/OtherResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
tags:
- other

View file

@ -177,7 +177,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateRetweetResponse'
oneOf:
- $ref: '#/components/schemas/CreateRetweetResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -369,7 +371,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateTweetResponse'
oneOf:
- $ref: '#/components/schemas/CreateTweetResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -439,7 +443,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteRetweetResponse'
oneOf:
- $ref: '#/components/schemas/DeleteRetweetResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -509,7 +515,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteTweetResponse'
oneOf:
- $ref: '#/components/schemas/DeleteTweetResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -579,7 +587,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/FavoriteTweetResponseData'
oneOf:
- $ref: '#/components/schemas/FavoriteTweetResponseData'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -649,7 +659,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/UnfavoriteTweetResponseData'
oneOf:
- $ref: '#/components/schemas/UnfavoriteTweetResponseData'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:

View file

@ -103,7 +103,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/ProfileResponse'
oneOf:
- $ref: '#/components/schemas/ProfileResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:

View file

@ -221,7 +221,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/TimelineResponse'
oneOf:
- $ref: '#/components/schemas/TimelineResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -405,7 +407,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/TimelineResponse'
oneOf:
- $ref: '#/components/schemas/TimelineResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -574,7 +578,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/ListLatestTweetsTimelineResponse'
oneOf:
- $ref: '#/components/schemas/ListLatestTweetsTimelineResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -772,7 +778,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/SearchTimelineResponse'
oneOf:
- $ref: '#/components/schemas/SearchTimelineResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:

View file

@ -191,7 +191,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/TweetFavoritersResponse'
oneOf:
- $ref: '#/components/schemas/TweetFavoritersResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -370,7 +372,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/TweetRetweetersResponse'
oneOf:
- $ref: '#/components/schemas/TweetRetweetersResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -569,7 +573,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/TweetDetailResponse'
oneOf:
- $ref: '#/components/schemas/TweetDetailResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:

View file

@ -111,7 +111,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/UserResponse'
oneOf:
- $ref: '#/components/schemas/UserResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -210,7 +212,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/UserResponse'
oneOf:
- $ref: '#/components/schemas/UserResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -301,7 +305,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/UsersResponse'
oneOf:
- $ref: '#/components/schemas/UsersResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:

View file

@ -230,7 +230,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/UserTweetsResponse'
oneOf:
- $ref: '#/components/schemas/UserTweetsResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -433,7 +435,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/UserHighlightsTweetsResponse'
oneOf:
- $ref: '#/components/schemas/UserHighlightsTweetsResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -627,7 +631,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/UserTweetsResponse'
oneOf:
- $ref: '#/components/schemas/UserTweetsResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -816,7 +822,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/UserTweetsResponse'
oneOf:
- $ref: '#/components/schemas/UserTweetsResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:
@ -1005,7 +1013,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/UserTweetsResponse'
oneOf:
- $ref: '#/components/schemas/UserTweetsResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:

View file

@ -14,7 +14,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/FollowResponse"
oneOf:
- $ref: "#/components/schemas/FollowResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "user-list"
@ -28,7 +30,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/FollowResponse"
oneOf:
- $ref: "#/components/schemas/FollowResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "user-list"
@ -42,7 +46,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/FollowResponse"
oneOf:
- $ref: "#/components/schemas/FollowResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "user-list"

View file

@ -14,7 +14,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/OtherResponse"
oneOf:
- $ref: "#/components/schemas/OtherResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "other"

View file

@ -14,7 +14,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/FavoriteTweetResponseData"
oneOf:
- $ref: "#/components/schemas/FavoriteTweetResponseData"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "post"
@ -28,7 +30,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/UnfavoriteTweetResponseData"
oneOf:
- $ref: "#/components/schemas/UnfavoriteTweetResponseData"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "post"
@ -42,7 +46,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/CreateRetweetResponse"
oneOf:
- $ref: "#/components/schemas/CreateRetweetResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "post"
@ -56,7 +62,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/DeleteRetweetResponse"
oneOf:
- $ref: "#/components/schemas/DeleteRetweetResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "post"
@ -70,7 +78,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/CreateTweetResponse"
oneOf:
- $ref: "#/components/schemas/CreateTweetResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "post"
@ -84,7 +94,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/DeleteTweetResponse"
oneOf:
- $ref: "#/components/schemas/DeleteTweetResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "post"

View file

@ -14,7 +14,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/ProfileResponse"
oneOf:
- $ref: "#/components/schemas/ProfileResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
components:
schemas:

View file

@ -14,7 +14,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/TimelineResponse"
oneOf:
- $ref: "#/components/schemas/TimelineResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "tweet"
@ -28,7 +30,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/TimelineResponse"
oneOf:
- $ref: "#/components/schemas/TimelineResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "tweet"
@ -42,7 +46,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/ListLatestTweetsTimelineResponse"
oneOf:
- $ref: "#/components/schemas/ListLatestTweetsTimelineResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "tweet"
@ -56,7 +62,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/SearchTimelineResponse"
oneOf:
- $ref: "#/components/schemas/SearchTimelineResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "tweet"

View file

@ -14,7 +14,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/TweetDetailResponse"
oneOf:
- $ref: "#/components/schemas/TweetDetailResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "tweet"
@ -28,7 +30,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/TweetFavoritersResponse"
oneOf:
- $ref: "#/components/schemas/TweetFavoritersResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "user-list"
@ -42,7 +46,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/TweetRetweetersResponse"
oneOf:
- $ref: "#/components/schemas/TweetRetweetersResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "user-list"

View file

@ -14,7 +14,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/UserResponse"
oneOf:
- $ref: "#/components/schemas/UserResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "user"
@ -28,7 +30,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/UserResponse"
oneOf:
- $ref: "#/components/schemas/UserResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "user"
@ -42,7 +46,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/UsersResponse"
oneOf:
- $ref: "#/components/schemas/UsersResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "user"

View file

@ -14,7 +14,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/UserTweetsResponse"
oneOf:
- $ref: "#/components/schemas/UserTweetsResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "tweet"
@ -28,7 +30,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/UserTweetsResponse"
oneOf:
- $ref: "#/components/schemas/UserTweetsResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "tweet"
@ -42,7 +46,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/UserHighlightsTweetsResponse"
oneOf:
- $ref: "#/components/schemas/UserHighlightsTweetsResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "tweet"
@ -56,7 +62,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/UserTweetsResponse"
oneOf:
- $ref: "#/components/schemas/UserTweetsResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "tweet"
@ -70,7 +78,9 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/UserTweetsResponse"
oneOf:
- $ref: "#/components/schemas/UserTweetsResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "tweet"