1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 23:50:26 +01:00
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-07-30 21:46:25 +09:00
parent 9a59a994a7
commit 112a13efc3
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
16 changed files with 256 additions and 4 deletions

94
dist/docs/schemas/error.yaml vendored Normal file
View file

@ -0,0 +1,94 @@
components:
schemas:
Error:
properties:
code:
type: integer
extensions:
$ref: '#/components/schemas/ErrorExtensions'
kind:
type: string
locations:
items:
$ref: '#/components/schemas/Location'
type: array
message:
type: string
name:
type: string
path:
items:
type: string
type: array
retry_after:
type: integer
source:
type: string
tracing:
$ref: '#/components/schemas/Tracing'
required:
- message
- locations
- path
- extensions
- code
- kind
- name
- source
- retry_after
- tracing
type: object
ErrorExtensions:
properties:
code:
type: integer
kind:
type: string
name:
type: string
retry_after:
type: integer
source:
type: string
tracing:
$ref: '#/components/schemas/Tracing'
required:
- name
- source
- retry_after
- code
- kind
- tracing
type: object
Errors:
properties:
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- errors
type: object
Location:
properties:
column:
type: integer
line:
type: integer
required:
- line
- column
type: object
Tracing:
properties:
trace_id:
pattern: ^[0-9a-f]{16}$
type: string
required:
- trace_id
type: object
info:
title: Twitter OpenAPI
version: 0.0.1
openapi: 3.0.3
paths: {}