1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 15:40:26 +01:00

fix error schema

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2024-09-29 18:08:58 +09:00
parent 162ad96a13
commit 28e49c7ddb
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
9 changed files with 90 additions and 199 deletions

View file

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

View file

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

View file

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