1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 07:30:37 +01:00

update schema

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2024-02-14 11:12:15 +09:00
parent 03a1fecde6
commit c48a188669
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
2 changed files with 11 additions and 12 deletions

View file

@ -263,6 +263,7 @@ components:
- "Location"
- "Sparkle"
- "Conversation"
- "List"
text:
type: string
landingUrl:
@ -303,7 +304,7 @@ components:
properties:
urlType:
type: string # enum
enum: ["DeepLink", "UrtEndpoint"]
enum: ["DeepLink", "UrtEndpoint", "ExternalUrl"]
url:
type: string # twitter://user?id=900282258736545792
format: uri

View file

@ -335,8 +335,6 @@ components:
type: integer
QuotedRefResult:
required:
- "result"
properties:
result:
$ref: "#/components/schemas/TweetUnion"
@ -392,7 +390,6 @@ components:
- "description"
- "question"
- "search_tags"
- "primary_community_topic"
- "actions"
- "admin_results"
- "creator_results"
@ -646,21 +643,21 @@ components:
ref:
$ref: "#/components/schemas/BirdwatchEntityRef"
BirdwatchEntityRef:
BirdwatchEntityRef: # Union
required:
- "type"
- "url"
- "urlType"
properties:
type:
type: string
enum: [TimelineUrl]
enum: [TimelineUrl, TimelineRichTextHashtag]
url:
type: string
format: uri
urlType:
type: string
enum: [ExternalUrl]
text:
type: string
BirdwatchPivotNote:
required:
@ -912,6 +909,7 @@ components:
- "community_tweet_non_member_public_community"
- "non_compliant"
- "dynamic_product_ad"
- "stale_tweet"
place:
additionalProperties: true # todo
@ -1219,13 +1217,13 @@ components:
$ref: "#/components/schemas/AdditionalMediaInfoCallToActions"
AdditionalMediaInfoCallToActions:
required:
- "visit_site"
properties:
visit_site:
$ref: "#/components/schemas/AdditionalMediaInfoCallToActionsVisitSite"
$ref: "#/components/schemas/AdditionalMediaInfoCallToActionsUrl"
watch_now:
$ref: "#/components/schemas/AdditionalMediaInfoCallToActionsUrl"
AdditionalMediaInfoCallToActionsVisitSite:
AdditionalMediaInfoCallToActionsUrl:
required:
- "url"
properties: