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