mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-12 16:10:26 +01:00
update
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
a69d2fa7d8
commit
5eedd4146d
6 changed files with 283 additions and 163 deletions
97
src/openapi/response/error.yaml
Normal file
97
src/openapi/response/error.yaml
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
openapi: 3.0.3
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
version: 0.0.1
|
||||
|
||||
paths: {}
|
||||
|
||||
components:
|
||||
schemas:
|
||||
ErrorResponse:
|
||||
type: object
|
||||
required:
|
||||
- errors
|
||||
- data
|
||||
properties:
|
||||
errors:
|
||||
$ref: "#/components/schemas/Errors"
|
||||
|
||||
Errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/Error"
|
||||
|
||||
Error:
|
||||
type: object
|
||||
required:
|
||||
- message
|
||||
- locations
|
||||
- path
|
||||
- extensions
|
||||
- code
|
||||
- kind
|
||||
- name
|
||||
- source
|
||||
- tracing
|
||||
properties:
|
||||
message:
|
||||
type: string
|
||||
locations:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/Location"
|
||||
path:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
extensions:
|
||||
$ref: "#/components/schemas/Extensions"
|
||||
code:
|
||||
type: integer
|
||||
kind:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
source:
|
||||
type: string
|
||||
tracing:
|
||||
$ref: "#/components/schemas/Tracing"
|
||||
|
||||
Location:
|
||||
type: object
|
||||
required:
|
||||
- line
|
||||
- column
|
||||
properties:
|
||||
line:
|
||||
type: integer
|
||||
column:
|
||||
type: integer
|
||||
|
||||
Extensions:
|
||||
type: object
|
||||
required:
|
||||
- name
|
||||
- source
|
||||
- code
|
||||
- kind
|
||||
- tracing
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
source:
|
||||
type: string
|
||||
code:
|
||||
type: integer
|
||||
kind:
|
||||
type: string
|
||||
tracing:
|
||||
$ref: "#/components/schemas/Tracing"
|
||||
|
||||
Tracing:
|
||||
type: object
|
||||
required:
|
||||
- trace_id
|
||||
properties:
|
||||
trace_id:
|
||||
type: string
|
||||
Loading…
Add table
Add a link
Reference in a new issue