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
|
type: string
|
||||||
userDisplayType:
|
userDisplayType:
|
||||||
type: string
|
type: string
|
||||||
|
user_results:
|
||||||
|
$ref: ./user.yaml#/components/schemas/UserResults
|
||||||
required:
|
required:
|
||||||
- __typename
|
- __typename
|
||||||
- itemType
|
- itemType
|
||||||
|
|
|
||||||
9
dist/schemas/user.yaml
vendored
9
dist/schemas/user.yaml
vendored
|
|
@ -197,16 +197,9 @@ components:
|
||||||
UserResults:
|
UserResults:
|
||||||
properties:
|
properties:
|
||||||
result:
|
result:
|
||||||
$ref: '#/components/schemas/UserUnion'
|
$ref: '#/components/schemas/User'
|
||||||
required:
|
required:
|
||||||
- result
|
- result
|
||||||
UserUnion:
|
|
||||||
discriminator:
|
|
||||||
mapping":
|
|
||||||
User: '#/components/schemas/User'
|
|
||||||
propertyName: __typename
|
|
||||||
oneOf:
|
|
||||||
- $ref: '#/components/schemas/User'
|
|
||||||
info:
|
info:
|
||||||
title: Twitter OpenAPI
|
title: Twitter OpenAPI
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue