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

fix displayType

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2024-02-13 00:57:45 +09:00
parent 8485d1faa6
commit be3ec86ef4
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
4 changed files with 25 additions and 15 deletions

View file

@ -543,6 +543,13 @@ components:
required: required:
- actionText - actionText
type: object type: object
DisplayType:
enum:
- Vertical
- VerticalConversation
- VerticalGrid
- Carousel
type: string
Entities: Entities:
properties: properties:
hashtags: hashtags:
@ -1691,12 +1698,7 @@ components:
additionalProperties: true additionalProperties: true
type: object type: object
displayType: displayType:
enum: $ref: '#/components/schemas/DisplayType'
- Vertical
- VerticalConversation
- VerticalGrid
- Carousel
type: string
entryType: entryType:
$ref: '#/components/schemas/ContentEntryType' $ref: '#/components/schemas/ContentEntryType'
feedbackInfo: feedbackInfo:

View file

@ -543,6 +543,13 @@ components:
required: required:
- actionText - actionText
type: object type: object
DisplayType:
enum:
- Vertical
- VerticalConversation
- VerticalGrid
- Carousel
type: string
Entities: Entities:
properties: properties:
hashtags: hashtags:
@ -1691,12 +1698,7 @@ components:
additionalProperties: true additionalProperties: true
type: object type: object
displayType: displayType:
enum: $ref: '#/components/schemas/DisplayType'
- Vertical
- VerticalConversation
- VerticalGrid
- Carousel
type: string
entryType: entryType:
$ref: '#/components/schemas/ContentEntryType' $ref: '#/components/schemas/ContentEntryType'
feedbackInfo: feedbackInfo:

View file

@ -59,8 +59,7 @@ components:
entryType: entryType:
$ref: "#/components/schemas/ContentEntryType" # TimelineTimelineCursor $ref: "#/components/schemas/ContentEntryType" # TimelineTimelineCursor
displayType: displayType:
type: string $ref: "#/components/schemas/DisplayType"
enum: [Vertical, VerticalConversation, VerticalGrid, Carousel]
items: items:
type: array type: array
items: items:
@ -113,6 +112,14 @@ components:
# ================= Module ================= # ================= Module =================
DisplayType:
type: string
enum:
- Vertical
- VerticalConversation
- VerticalGrid
- Carousel
ModuleItem: ModuleItem:
required: required:
- "entryId" - "entryId"

View file

@ -35,7 +35,6 @@ components:
tweetInterstitial: tweetInterstitial:
$ref: "#/components/schemas/TweetInterstitial" $ref: "#/components/schemas/TweetInterstitial"
# {'__typename': 'ContextualTweetInterstitial', 'displayType': 'NonCompliant', 'text': {'rtl': False, 'text': 'This Post violated the X Rules. However, X has determined that it may be in the publics interest for the Post to remain accessible. Learn more', 'entities': [{'fromIndex': 133, 'toIndex': 143, 'ref': {'type': 'TimelineUrl', 'url': 'https://help.twitter.com/rules-and-policies/public-interest', 'urlType': 'ExternalUrl'}}]}, 'revealText': {'rtl': False, 'text': 'View', 'entities': []}}
TweetInterstitial: TweetInterstitial:
required: required:
- "__typename" - "__typename"