mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 23:50:26 +01:00
[destructive] error handling
This commit is contained in:
parent
28b4dbcaf5
commit
db793e66fb
16 changed files with 380 additions and 7115 deletions
|
|
@ -14,9 +14,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/FollowResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/FollowResponse"
|
||||
tags:
|
||||
- "user-list"
|
||||
|
||||
|
|
@ -30,9 +28,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/FollowResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/FollowResponse"
|
||||
tags:
|
||||
- "user-list"
|
||||
|
||||
|
|
@ -46,9 +42,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/FollowResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
$ref: "#/components/schemas/FollowResponse"
|
||||
tags:
|
||||
- "user-list"
|
||||
|
||||
|
|
@ -60,10 +54,12 @@ components:
|
|||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/FollowResponseData"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./../response/error.yaml#/components/schemas/Error"
|
||||
|
||||
FollowResponseData:
|
||||
required:
|
||||
- "user"
|
||||
properties:
|
||||
user:
|
||||
$ref: "#/components/schemas/FollowResponseUser"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue