mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 23:50:26 +01:00
add builder
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
9052b3a16a
commit
26908878c1
31 changed files with 2886 additions and 1549 deletions
105
dist/schemas/content.yaml
vendored
Normal file
105
dist/schemas/content.yaml
vendored
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
components:
|
||||
schemas:
|
||||
ContentEntryType:
|
||||
enum:
|
||||
- TimelineTimelineItem
|
||||
- TimelineTimelineCursor
|
||||
- TimelineTimelineModule
|
||||
type: string
|
||||
ContentItemType:
|
||||
enum:
|
||||
- TimelineTweet
|
||||
type: string
|
||||
ContentUnion:
|
||||
discriminator:
|
||||
mapping":
|
||||
TimelineTimelineCursor: '#/components/schemas/TimelineTimelineCursor'
|
||||
TimelineTimelineItem: '#/components/schemas/TimelineTimelineItem'
|
||||
TimelineTimelineModule: '#/components/schemas/TimelineTimelineModule'
|
||||
propertyName: entryType
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/TimelineTimelineItem'
|
||||
- $ref: '#/components/schemas/TimelineTimelineCursor'
|
||||
- $ref: '#/components/schemas/TimelineTimelineModule'
|
||||
ItemContent:
|
||||
properties:
|
||||
__typename:
|
||||
$ref: ./typename.yaml#/components/schemas/TypeName
|
||||
itemType:
|
||||
$ref: '#/components/schemas/ContentItemType'
|
||||
type: string
|
||||
socialContext:
|
||||
properties:
|
||||
contextType:
|
||||
type: string
|
||||
text:
|
||||
type: string
|
||||
type:
|
||||
type: string
|
||||
type: object
|
||||
tweetDisplayType:
|
||||
type: string
|
||||
tweet_results:
|
||||
$ref: '#/components/schemas/ItemResult'
|
||||
required:
|
||||
- __typename
|
||||
- itemType
|
||||
- tweetDisplayType
|
||||
- tweet_results
|
||||
ItemResult:
|
||||
properties:
|
||||
result:
|
||||
$ref: ./tweet.yaml#/components/schemas/TweetUnion
|
||||
required:
|
||||
- result
|
||||
TimelineTimelineCursor:
|
||||
properties:
|
||||
__typename:
|
||||
$ref: ./typename.yaml#/components/schemas/TypeName
|
||||
cursorType:
|
||||
enum:
|
||||
- Top
|
||||
- Bottom
|
||||
type: string
|
||||
entryType:
|
||||
$ref: '#/components/schemas/ContentEntryType'
|
||||
type: string
|
||||
value:
|
||||
type: string
|
||||
required:
|
||||
- __typename
|
||||
- entryType
|
||||
- cursorType
|
||||
- value
|
||||
TimelineTimelineItem:
|
||||
properties:
|
||||
__typename:
|
||||
$ref: ./typename.yaml#/components/schemas/TypeName
|
||||
clientEventInfo:
|
||||
type: object
|
||||
entryType:
|
||||
$ref: '#/components/schemas/ContentEntryType'
|
||||
type: string
|
||||
feedbackInfo:
|
||||
type: object
|
||||
itemContent:
|
||||
$ref: '#/components/schemas/ItemContent'
|
||||
required:
|
||||
- __typename
|
||||
- entryType
|
||||
- itemContent
|
||||
TimelineTimelineModule:
|
||||
properties:
|
||||
__typename:
|
||||
$ref: ./typename.yaml#/components/schemas/TypeName
|
||||
entryType:
|
||||
$ref: '#/components/schemas/ContentEntryType'
|
||||
type: string
|
||||
required:
|
||||
- __typename
|
||||
- entryType
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
version: 0.0.1
|
||||
openapi: 3.0.3
|
||||
paths: {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue