mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 23:50:26 +01:00
add user_results
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
8b66a6a545
commit
fe0f514420
2 changed files with 3 additions and 8 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
|
||||
|
|
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue