From 5342b87e6fc7001ebf3bf737f3a616da78ce0498 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Thu, 7 Nov 2024 22:26:16 +0900 Subject: [PATCH] rename Error Response MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- src/openapi/paths/bookmarks.yaml | 2 +- src/openapi/paths/follow.yaml | 2 +- src/openapi/paths/post.yaml | 16 ++++++++-------- src/openapi/paths/profile.yaml | 2 +- src/openapi/paths/timeline.yaml | 6 +++--- src/openapi/paths/tweet.yaml | 8 ++++---- src/openapi/paths/user.yaml | 4 ++-- src/openapi/paths/usertweets.yaml | 4 ++-- src/openapi/response/error.yaml | 2 +- 9 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/openapi/paths/bookmarks.yaml b/src/openapi/paths/bookmarks.yaml index f063bca..8399024 100644 --- a/src/openapi/paths/bookmarks.yaml +++ b/src/openapi/paths/bookmarks.yaml @@ -27,7 +27,7 @@ components: errors: type: array items: - $ref: "./../response/error.yaml#/components/schemas/Error" + $ref: "./../response/error.yaml#/components/schemas/ErrorResponse" BookmarksResponseData: properties: diff --git a/src/openapi/paths/follow.yaml b/src/openapi/paths/follow.yaml index 89b662d..822c276 100644 --- a/src/openapi/paths/follow.yaml +++ b/src/openapi/paths/follow.yaml @@ -57,7 +57,7 @@ components: errors: type: array items: - $ref: "./../response/error.yaml#/components/schemas/Error" + $ref: "./../response/error.yaml#/components/schemas/ErrorResponse" FollowResponseData: properties: diff --git a/src/openapi/paths/post.yaml b/src/openapi/paths/post.yaml index 458f71b..4d6df7d 100644 --- a/src/openapi/paths/post.yaml +++ b/src/openapi/paths/post.yaml @@ -128,7 +128,7 @@ components: errors: type: array items: - $ref: "./../response/error.yaml#/components/schemas/Error" + $ref: "./../response/error.yaml#/components/schemas/ErrorResponse" FavoriteTweet: properties: @@ -146,7 +146,7 @@ components: errors: type: array items: - $ref: "./../response/error.yaml#/components/schemas/Error" + $ref: "./../response/error.yaml#/components/schemas/ErrorResponse" UnfavoriteTweet: properties: @@ -164,7 +164,7 @@ components: errors: type: array items: - $ref: "./../response/error.yaml#/components/schemas/Error" + $ref: "./../response/error.yaml#/components/schemas/ErrorResponse" CreateRetweetResponseData: properties: @@ -212,7 +212,7 @@ components: errors: type: array items: - $ref: "./../response/error.yaml#/components/schemas/Error" + $ref: "./../response/error.yaml#/components/schemas/ErrorResponse" DeleteRetweetResponseData: properties: @@ -246,7 +246,7 @@ components: errors: type: array items: - $ref: "./../response/error.yaml#/components/schemas/Error" + $ref: "./../response/error.yaml#/components/schemas/ErrorResponse" CreateTweetResponseData: properties: @@ -278,7 +278,7 @@ components: errors: type: array items: - $ref: "./../response/error.yaml#/components/schemas/Error" + $ref: "./../response/error.yaml#/components/schemas/ErrorResponse" DeleteTweetResponseData: properties: @@ -303,7 +303,7 @@ components: errors: type: array items: - $ref: "./../response/error.yaml#/components/schemas/Error" + $ref: "./../response/error.yaml#/components/schemas/ErrorResponse" CreateBookmarkResponseData: properties: @@ -321,7 +321,7 @@ components: errors: type: array items: - $ref: "./../response/error.yaml#/components/schemas/Error" + $ref: "./../response/error.yaml#/components/schemas/ErrorResponse" DeleteBookmarkResponseData: properties: diff --git a/src/openapi/paths/profile.yaml b/src/openapi/paths/profile.yaml index 53f261b..7ced443 100644 --- a/src/openapi/paths/profile.yaml +++ b/src/openapi/paths/profile.yaml @@ -27,7 +27,7 @@ components: errors: type: array items: - $ref: "./../response/error.yaml#/components/schemas/Error" + $ref: "./../response/error.yaml#/components/schemas/ErrorResponse" ProfileResponseData: properties: diff --git a/src/openapi/paths/timeline.yaml b/src/openapi/paths/timeline.yaml index edfcef8..e80487f 100644 --- a/src/openapi/paths/timeline.yaml +++ b/src/openapi/paths/timeline.yaml @@ -71,7 +71,7 @@ components: errors: type: array items: - $ref: "./../response/error.yaml#/components/schemas/Error" + $ref: "./../response/error.yaml#/components/schemas/ErrorResponse" HomeTimelineResponseData: properties: @@ -94,7 +94,7 @@ components: errors: type: array items: - $ref: "./../response/error.yaml#/components/schemas/Error" + $ref: "./../response/error.yaml#/components/schemas/ErrorResponse" ListTweetsTimelineData: properties: @@ -122,7 +122,7 @@ components: errors: type: array items: - $ref: "./../response/error.yaml#/components/schemas/Error" + $ref: "./../response/error.yaml#/components/schemas/ErrorResponse" SearchTimelineData: properties: diff --git a/src/openapi/paths/tweet.yaml b/src/openapi/paths/tweet.yaml index 77d2410..7375ed4 100644 --- a/src/openapi/paths/tweet.yaml +++ b/src/openapi/paths/tweet.yaml @@ -71,7 +71,7 @@ components: errors: type: array items: - $ref: "./../response/error.yaml#/components/schemas/Error" + $ref: "./../response/error.yaml#/components/schemas/ErrorResponse" TweetDetailResponseData: properties: @@ -87,7 +87,7 @@ components: errors: type: array items: - $ref: "./../response/error.yaml#/components/schemas/Error" + $ref: "./../response/error.yaml#/components/schemas/ErrorResponse" TweetResultByRestIdData: properties: @@ -103,7 +103,7 @@ components: errors: type: array items: - $ref: "./../response/error.yaml#/components/schemas/Error" + $ref: "./../response/error.yaml#/components/schemas/ErrorResponse" TweetFavoritersResponseData: properties: @@ -119,7 +119,7 @@ components: errors: type: array items: - $ref: "./../response/error.yaml#/components/schemas/Error" + $ref: "./../response/error.yaml#/components/schemas/ErrorResponse" TweetRetweetersResponseData: properties: diff --git a/src/openapi/paths/user.yaml b/src/openapi/paths/user.yaml index 8c7c8de..c977b91 100644 --- a/src/openapi/paths/user.yaml +++ b/src/openapi/paths/user.yaml @@ -57,7 +57,7 @@ components: errors: type: array items: - $ref: "./../response/error.yaml#/components/schemas/Error" + $ref: "./../response/error.yaml#/components/schemas/ErrorResponse" UserResponseData: properties: @@ -73,7 +73,7 @@ components: errors: type: array items: - $ref: "./../response/error.yaml#/components/schemas/Error" + $ref: "./../response/error.yaml#/components/schemas/ErrorResponse" UsersResponseData: properties: diff --git a/src/openapi/paths/usertweets.yaml b/src/openapi/paths/usertweets.yaml index c497040..05d284b 100644 --- a/src/openapi/paths/usertweets.yaml +++ b/src/openapi/paths/usertweets.yaml @@ -85,7 +85,7 @@ components: errors: type: array items: - $ref: "./../response/error.yaml#/components/schemas/Error" + $ref: "./../response/error.yaml#/components/schemas/ErrorResponse" UserTweetsData: properties: @@ -118,7 +118,7 @@ components: errors: type: array items: - $ref: "./../response/error.yaml#/components/schemas/Error" + $ref: "./../response/error.yaml#/components/schemas/ErrorResponse" UserHighlightsTweetsData: properties: diff --git a/src/openapi/response/error.yaml b/src/openapi/response/error.yaml index d253d32..1b87159 100644 --- a/src/openapi/response/error.yaml +++ b/src/openapi/response/error.yaml @@ -6,7 +6,7 @@ info: paths: {} components: schemas: - Error: + ErrorResponse: type: object required: - message