mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 23:50:26 +01:00
add TweetDetail
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
abbcbe8b86
commit
a16f4a6915
9 changed files with 297 additions and 61 deletions
16
dist/schemas/instruction.yaml
vendored
16
dist/schemas/instruction.yaml
vendored
|
|
@ -5,6 +5,7 @@ components:
|
|||
- TimelineAddEntries
|
||||
- TimelineClearCache
|
||||
- TimelinePinEntry
|
||||
- TimelineTerminateTimeline
|
||||
type: string
|
||||
InstructionUnion:
|
||||
discriminator:
|
||||
|
|
@ -12,11 +13,13 @@ components:
|
|||
TimelineAddEntries: '#/components/schemas/TimelineAddEntries'
|
||||
TimelineClearCache: '#/components/schemas/TimelineClearCache'
|
||||
TimelinePinEntry: '#/components/schemas/TimelinePinEntry'
|
||||
TimelineTerminateTimeline: '#/components/schemas/TimelineTerminateTimeline'
|
||||
propertyName: type
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/TimelineAddEntries'
|
||||
- $ref: '#/components/schemas/TimelineClearCache'
|
||||
- $ref: '#/components/schemas/TimelinePinEntry'
|
||||
- $ref: '#/components/schemas/TimelineTerminateTimeline'
|
||||
TimelineAddEntries:
|
||||
properties:
|
||||
entries:
|
||||
|
|
@ -60,6 +63,19 @@ components:
|
|||
required:
|
||||
- type
|
||||
- entry
|
||||
TimelineTerminateTimeline:
|
||||
properties:
|
||||
direction:
|
||||
enum:
|
||||
- Top
|
||||
- Bottom
|
||||
type: string
|
||||
type:
|
||||
$ref: '#/components/schemas/InstructionType'
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- direction
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
version: 0.0.1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue