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:
parent
8485d1faa6
commit
be3ec86ef4
4 changed files with 25 additions and 15 deletions
14
dist/compatible/openapi-3.0.yaml
vendored
14
dist/compatible/openapi-3.0.yaml
vendored
|
|
@ -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:
|
||||||
|
|
|
||||||
14
dist/docs/openapi-3.0.yaml
vendored
14
dist/docs/openapi-3.0.yaml
vendored
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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 public’s 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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue