mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 23:50:26 +01:00
Merge branch 'main' of https://github.com/fa0311/twitter-openapi
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
commit
a40f863fda
5 changed files with 6 additions and 18 deletions
2
dist/schemas/content.yaml
vendored
2
dist/schemas/content.yaml
vendored
|
|
@ -166,6 +166,8 @@ components:
|
|||
type: string
|
||||
userDisplayType:
|
||||
type: string
|
||||
user_results:
|
||||
$ref: ./user.yaml#/components/schemas/UserResults
|
||||
required:
|
||||
- __typename
|
||||
- itemType
|
||||
|
|
|
|||
1
dist/schemas/tweet.yaml
vendored
1
dist/schemas/tweet.yaml
vendored
|
|
@ -57,7 +57,6 @@ components:
|
|||
- is_translatable
|
||||
- legacy
|
||||
- views
|
||||
- quoted_status_result
|
||||
TweetLegacy:
|
||||
properties:
|
||||
bookmark_count:
|
||||
|
|
|
|||
9
dist/schemas/user.yaml
vendored
9
dist/schemas/user.yaml
vendored
|
|
@ -197,16 +197,9 @@ components:
|
|||
UserResults:
|
||||
properties:
|
||||
result:
|
||||
$ref: '#/components/schemas/UserUnion'
|
||||
$ref: '#/components/schemas/User'
|
||||
required:
|
||||
- result
|
||||
UserUnion:
|
||||
discriminator:
|
||||
mapping":
|
||||
User: '#/components/schemas/User'
|
||||
propertyName: __typename
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/User'
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
version: 0.0.1
|
||||
|
|
|
|||
|
|
@ -167,6 +167,8 @@ components:
|
|||
$ref: "#/components/schemas/SocialContext"
|
||||
userDisplayType:
|
||||
type: string # enum
|
||||
user_results:
|
||||
$ref: "./user.yaml#/components/schemas/UserResults"
|
||||
|
||||
ItemResult:
|
||||
required:
|
||||
|
|
|
|||
|
|
@ -17,15 +17,7 @@ components:
|
|||
- "result"
|
||||
properties:
|
||||
result:
|
||||
$ref: "#/components/schemas/UserUnion"
|
||||
|
||||
UserUnion:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/User"
|
||||
discriminator:
|
||||
propertyName: __typename
|
||||
mapping": # deprecated
|
||||
User: "#/components/schemas/User"
|
||||
$ref: "#/components/schemas/User"
|
||||
|
||||
User:
|
||||
required:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue