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

add error handling

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-07-31 18:16:36 +09:00
parent 49b7951ba3
commit 853709bb44
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
8 changed files with 78 additions and 26 deletions

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"