diff --git a/src/openapi/paths/follow.yaml b/src/openapi/paths/follow.yaml index 3ae6491..8861f35 100644 --- a/src/openapi/paths/follow.yaml +++ b/src/openapi/paths/follow.yaml @@ -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" diff --git a/src/openapi/paths/other.yaml b/src/openapi/paths/other.yaml index 6700968..280b3a8 100644 --- a/src/openapi/paths/other.yaml +++ b/src/openapi/paths/other.yaml @@ -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" diff --git a/src/openapi/paths/post.yaml b/src/openapi/paths/post.yaml index 1ea7b6e..86680fd 100644 --- a/src/openapi/paths/post.yaml +++ b/src/openapi/paths/post.yaml @@ -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" diff --git a/src/openapi/paths/profile.yaml b/src/openapi/paths/profile.yaml index b26453c..db3c2d5 100644 --- a/src/openapi/paths/profile.yaml +++ b/src/openapi/paths/profile.yaml @@ -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: diff --git a/src/openapi/paths/timeline.yaml b/src/openapi/paths/timeline.yaml index a2c4b6a..cb40385 100644 --- a/src/openapi/paths/timeline.yaml +++ b/src/openapi/paths/timeline.yaml @@ -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" diff --git a/src/openapi/paths/tweet.yaml b/src/openapi/paths/tweet.yaml index e6bdef1..87ddd4a 100644 --- a/src/openapi/paths/tweet.yaml +++ b/src/openapi/paths/tweet.yaml @@ -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" diff --git a/src/openapi/paths/user.yaml b/src/openapi/paths/user.yaml index 1da25d7..d12620d 100644 --- a/src/openapi/paths/user.yaml +++ b/src/openapi/paths/user.yaml @@ -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" diff --git a/src/openapi/paths/usertweets.yaml b/src/openapi/paths/usertweets.yaml index 74a42e0..611d98a 100644 --- a/src/openapi/paths/usertweets.yaml +++ b/src/openapi/paths/usertweets.yaml @@ -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"