mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 07:30:37 +01:00
fix error schema
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
162ad96a13
commit
28e49c7ddb
9 changed files with 90 additions and 199 deletions
37
dist/docs/openapi-3.0.yaml
vendored
37
dist/docs/openapi-3.0.yaml
vendored
|
|
@ -755,7 +755,6 @@ components:
|
|||
- kind
|
||||
- name
|
||||
- source
|
||||
- retry_after
|
||||
- tracing
|
||||
type: object
|
||||
ErrorExtensions:
|
||||
|
|
@ -775,19 +774,10 @@ components:
|
|||
required:
|
||||
- name
|
||||
- source
|
||||
- retry_after
|
||||
- code
|
||||
- kind
|
||||
- tracing
|
||||
type: object
|
||||
ErrorResponse:
|
||||
properties:
|
||||
errors:
|
||||
$ref: '#/components/schemas/Errors'
|
||||
required:
|
||||
- errors
|
||||
- data
|
||||
type: object
|
||||
Errors:
|
||||
properties:
|
||||
errors:
|
||||
|
|
@ -814,25 +804,6 @@ components:
|
|||
type: array
|
||||
required:
|
||||
- media
|
||||
Extensions:
|
||||
properties:
|
||||
code:
|
||||
type: integer
|
||||
kind:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
source:
|
||||
type: string
|
||||
tracing:
|
||||
$ref: '#/components/schemas/Tracing'
|
||||
required:
|
||||
- name
|
||||
- source
|
||||
- code
|
||||
- kind
|
||||
- tracing
|
||||
type: object
|
||||
FavoriteTweet:
|
||||
properties:
|
||||
favorite_tweet:
|
||||
|
|
@ -2482,17 +2453,25 @@ components:
|
|||
properties:
|
||||
__typename:
|
||||
$ref: '#/components/schemas/TypeName'
|
||||
TweetUnavailable:
|
||||
properties:
|
||||
__typename:
|
||||
$ref: '#/components/schemas/TypeName'
|
||||
reason:
|
||||
type: string
|
||||
TweetUnion:
|
||||
discriminator:
|
||||
mapping":
|
||||
Tweet: '#/components/schemas/Tweet'
|
||||
TweetTombstone: '#/components/schemas/TweetTombstone'
|
||||
TweetUnavailable: '#/components/schemas/TweetUnavailable'
|
||||
TweetWithVisibilityResults: '#/components/schemas/TweetWithVisibilityResults'
|
||||
propertyName: __typename
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/Tweet'
|
||||
- $ref: '#/components/schemas/TweetWithVisibilityResults'
|
||||
- $ref: '#/components/schemas/TweetTombstone'
|
||||
- $ref: '#/components/schemas/TweetUnavailable'
|
||||
TweetView:
|
||||
properties:
|
||||
count:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue