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

Merge pull request #53 from fa0311/dev

fix displayType
This commit is contained in:
ふぁ 2024-02-13 00:58:50 +09:00 committed by GitHub
commit 58e346c34a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 25 additions and 15 deletions

View file

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

View file

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

View file

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

View file

@ -35,7 +35,6 @@ components:
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:
required:
- "__typename"