1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 23:50:26 +01:00
twitter-openapi/openapi/src/components/schemas/Content.yaml
ふぁ 6fbb3310d8
update
Signed-off-by: ふぁ <yuki@yuki0311.com>
2023-04-12 03:47:57 +09:00

63 lines
1.5 KiB
YAML

ContentUnion:
oneOf:
- $ref: "#/TimelineTimelineItem"
- $ref: "#/TimelineTimelineCursor"
- $ref: "#/TimelineTimelineModule"
discriminator:
propertyName: entryType
mapping": # deprecated
TimelineTimelineItem: "#/TimelineTimelineItem"
TimelineTimelineCursor: "#/TimelineTimelineCursor"
TimelineTimelineModule: "#/TimelineTimelineModule"
ContentEntryType:
type: string
enum: [TimelineTimelineItem, TimelineTimelineCursor, TimelineTimelineModule]
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
TimelineTimelineModule:
required:
- "__typename"
- "entryType"
properties:
__typename:
$ref: "./TypeName.yaml#/TypeName" # TimelineTimelineModule
entryType:
type: string # enum
$ref: "#/ContentEntryType" # TimelineTimelineCursor