1
Fork 0
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:
ふぁ 2024-11-07 02:02:24 +09:00
parent 28b4dbcaf5
commit db793e66fb
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
16 changed files with 380 additions and 7115 deletions

View file

@ -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"