diff --git a/dist/compatible/openapi-3.0.yaml b/dist/compatible/openapi-3.0.yaml index d06c9f6..9464dd5 100644 --- a/dist/compatible/openapi-3.0.yaml +++ b/dist/compatible/openapi-3.0.yaml @@ -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: diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index 8f8ecd0..1e10464 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -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: diff --git a/src/openapi/schemas/content.yaml b/src/openapi/schemas/content.yaml index 4e500b5..3d1ed99 100644 --- a/src/openapi/schemas/content.yaml +++ b/src/openapi/schemas/content.yaml @@ -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" diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index 9f55f00..3f89e0c 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -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 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: required: - "__typename"