1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 07:30:37 +01:00

Merge pull request #27 from fa0311/dev

add CursorType
This commit is contained in:
ふぁ 2023-07-31 20:22:45 +09:00 committed by GitHub
commit dfd0a0626f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 16 deletions

View file

@ -25,6 +25,14 @@ components:
- $ref: '#/components/schemas/TimelineTimelineItem'
- $ref: '#/components/schemas/TimelineTimelineModule'
- $ref: '#/components/schemas/TimelineTimelineCursor'
CursorType:
enum:
- Top
- Bottom
- ShowMore
- ShowMoreThreads
- Gap
type: string
ItemContentUnion:
discriminator:
mapping":
@ -92,13 +100,7 @@ components:
__typename:
$ref: ./typename.yaml#/components/schemas/TypeName
cursorType:
enum:
- Top
- Bottom
- ShowMore
- ShowMoreThreads
- Gap
type: string
$ref: '#/components/schemas/CursorType'
entryType:
$ref: '#/components/schemas/ContentEntryType'
itemType:

View file

@ -25,6 +25,14 @@ components:
- $ref: '#/components/schemas/TimelineTimelineItem'
- $ref: '#/components/schemas/TimelineTimelineModule'
- $ref: '#/components/schemas/TimelineTimelineCursor'
CursorType:
enum:
- Top
- Bottom
- ShowMore
- ShowMoreThreads
- Gap
type: string
ItemContentUnion:
discriminator:
mapping":
@ -92,13 +100,7 @@ components:
__typename:
$ref: ./typename.yaml#/components/schemas/TypeName
cursorType:
enum:
- Top
- Bottom
- ShowMore
- ShowMoreThreads
- Gap
type: string
$ref: '#/components/schemas/CursorType'
entryType:
$ref: '#/components/schemas/ContentEntryType'
itemType:

View file

@ -23,6 +23,10 @@ components:
enum:
[TimelineTimelineItem, TimelineTimelineCursor, TimelineTimelineModule]
CursorType:
type: string
enum: [Top, Bottom, ShowMore, ShowMoreThreads, Gap] # Gap???
TimelineTimelineItem:
required:
- "__typename"
@ -85,8 +89,7 @@ components:
itemType:
$ref: "#/components/schemas/ContentEntryType" # null | TimelineTimelineCursor
cursorType:
type: string
enum: [Top, Bottom, ShowMore, ShowMoreThreads, Gap] # Gap???
$ref: "#/components/schemas/CursorType"
value:
type: string