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
|
|
@ -11,16 +11,24 @@ components:
|
|||
- $ref: "#/components/schemas/TimelineAddEntries"
|
||||
- $ref: "#/components/schemas/TimelineClearCache"
|
||||
- $ref: "#/components/schemas/TimelinePinEntry"
|
||||
- $ref: "#/components/schemas/TimelineTerminateTimeline"
|
||||
discriminator:
|
||||
propertyName: type
|
||||
mapping": # deprecated
|
||||
TimelineAddEntries: "#/components/schemas/TimelineAddEntries"
|
||||
TimelineClearCache: "#/components/schemas/TimelineClearCache"
|
||||
TimelinePinEntry: "#/components/schemas/TimelinePinEntry"
|
||||
TimelineTerminateTimeline: "#/components/schemas/TimelineTerminateTimeline"
|
||||
|
||||
InstructionType:
|
||||
type: string
|
||||
enum: [TimelineAddEntries, TimelineClearCache, TimelinePinEntry]
|
||||
enum:
|
||||
[
|
||||
TimelineAddEntries,
|
||||
TimelineClearCache,
|
||||
TimelinePinEntry,
|
||||
TimelineTerminateTimeline,
|
||||
]
|
||||
|
||||
TimelineAddEntries:
|
||||
required:
|
||||
|
|
@ -54,6 +62,18 @@ components:
|
|||
entry:
|
||||
$ref: "#/components/schemas/TimelineAddEntry"
|
||||
|
||||
TimelineTerminateTimeline:
|
||||
required:
|
||||
- type
|
||||
- direction
|
||||
properties:
|
||||
type:
|
||||
type: string
|
||||
$ref: "#/components/schemas/InstructionType" # TimelineTerminateTimeline
|
||||
direction:
|
||||
type: string
|
||||
enum: [Top, Bottom]
|
||||
|
||||
TimelineAddEntry:
|
||||
required:
|
||||
- "content"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue