1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 23:50:26 +01:00

update file

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-04-12 02:16:34 +09:00
parent 9b3deabd8e
commit 3d54c8d9a7
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
13 changed files with 600 additions and 605 deletions

View file

@ -0,0 +1,49 @@
ContentUnion:
oneOf:
- $ref: "#/TimelineTimelineItem"
- $ref: "#/TimelineTimelineCursor"
discriminator:
propertyName: entryType
mapping": # deprecated
TimelineTimelineItem: "#/TimelineTimelineItem"
TimelineTimelineCursor: "#/TimelineTimelineCursor"
ContentEntryType:
type: string
enum: [TimelineTimelineItem, TimelineTimelineCursor]
TimelineTimelineItem:
required:
- "__typename"
- "entryType"
- "itemContent"
properties:
__typename:
$ref: "./TypeName.yaml#/TypeName" # TimelineTimelineItem
entryType:
type: string # enum
$ref: "#/ContentEntryType" # TimelineTimelineItem
itemContent:
$ref: "./ItemContent.yaml#/ItemContent"
clientEventInfo:
type: object # todo
feedbackInfo:
type: object # todo
TimelineTimelineCursor:
required:
- "__typename"
- "entryType"
- "cursorType"
- "value"
properties:
__typename:
$ref: "./TypeName.yaml#/TypeName" # TimelineTimelineCursor
entryType:
type: string # enum
$ref: "#/ContentEntryType" # TimelineTimelineCursor
cursorType:
type: string
enum: [Top, Bottom]
value:
type: string