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:
parent
9b3deabd8e
commit
3d54c8d9a7
13 changed files with 600 additions and 605 deletions
49
openapi/src/components/schemas/Content.yaml
Normal file
49
openapi/src/components/schemas/Content.yaml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue