1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-12 16:10:26 +01:00
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-04-27 20:18:39 +09:00
parent a69d2fa7d8
commit 5eedd4146d
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
6 changed files with 283 additions and 163 deletions

View 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