1
Fork 0
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:
ふぁ 2023-04-18 19:07:40 +09:00
parent abbcbe8b86
commit a16f4a6915
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
9 changed files with 297 additions and 61 deletions

View file

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