Skip to content

Commit

Permalink
rename Error Response
Browse files Browse the repository at this point in the history
Signed-off-by: ふぁ <[email protected]>
  • Loading branch information
fa0311 committed Nov 7, 2024
1 parent e7bbba9 commit 5342b87
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/openapi/paths/bookmarks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/openapi/paths/follow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
16 changes: 8 additions & 8 deletions src/openapi/paths/post.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/openapi/paths/profile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions src/openapi/paths/timeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions src/openapi/paths/tweet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions src/openapi/paths/user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions src/openapi/paths/usertweets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/openapi/response/error.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ info:
paths: {}
components:
schemas:
Error:
ErrorResponse:
type: object
required:
- message
Expand Down

0 comments on commit 5342b87

Please sign in to comment.