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:
parent
49b7951ba3
commit
853709bb44
8 changed files with 78 additions and 26 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue