mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 23:50:26 +01:00
update schema
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
03a1fecde6
commit
c48a188669
2 changed files with 11 additions and 12 deletions
|
|
@ -263,6 +263,7 @@ components:
|
||||||
- "Location"
|
- "Location"
|
||||||
- "Sparkle"
|
- "Sparkle"
|
||||||
- "Conversation"
|
- "Conversation"
|
||||||
|
- "List"
|
||||||
text:
|
text:
|
||||||
type: string
|
type: string
|
||||||
landingUrl:
|
landingUrl:
|
||||||
|
|
@ -303,7 +304,7 @@ components:
|
||||||
properties:
|
properties:
|
||||||
urlType:
|
urlType:
|
||||||
type: string # enum
|
type: string # enum
|
||||||
enum: ["DeepLink", "UrtEndpoint"]
|
enum: ["DeepLink", "UrtEndpoint", "ExternalUrl"]
|
||||||
url:
|
url:
|
||||||
type: string # twitter://user?id=900282258736545792
|
type: string # twitter://user?id=900282258736545792
|
||||||
format: uri
|
format: uri
|
||||||
|
|
|
||||||
|
|
@ -335,8 +335,6 @@ components:
|
||||||
type: integer
|
type: integer
|
||||||
|
|
||||||
QuotedRefResult:
|
QuotedRefResult:
|
||||||
required:
|
|
||||||
- "result"
|
|
||||||
properties:
|
properties:
|
||||||
result:
|
result:
|
||||||
$ref: "#/components/schemas/TweetUnion"
|
$ref: "#/components/schemas/TweetUnion"
|
||||||
|
|
@ -392,7 +390,6 @@ components:
|
||||||
- "description"
|
- "description"
|
||||||
- "question"
|
- "question"
|
||||||
- "search_tags"
|
- "search_tags"
|
||||||
- "primary_community_topic"
|
|
||||||
- "actions"
|
- "actions"
|
||||||
- "admin_results"
|
- "admin_results"
|
||||||
- "creator_results"
|
- "creator_results"
|
||||||
|
|
@ -646,21 +643,21 @@ components:
|
||||||
ref:
|
ref:
|
||||||
$ref: "#/components/schemas/BirdwatchEntityRef"
|
$ref: "#/components/schemas/BirdwatchEntityRef"
|
||||||
|
|
||||||
BirdwatchEntityRef:
|
BirdwatchEntityRef: # Union
|
||||||
required:
|
required:
|
||||||
- "type"
|
- "type"
|
||||||
- "url"
|
|
||||||
- "urlType"
|
|
||||||
properties:
|
properties:
|
||||||
type:
|
type:
|
||||||
type: string
|
type: string
|
||||||
enum: [TimelineUrl]
|
enum: [TimelineUrl, TimelineRichTextHashtag]
|
||||||
url:
|
url:
|
||||||
type: string
|
type: string
|
||||||
format: uri
|
format: uri
|
||||||
urlType:
|
urlType:
|
||||||
type: string
|
type: string
|
||||||
enum: [ExternalUrl]
|
enum: [ExternalUrl]
|
||||||
|
text:
|
||||||
|
type: string
|
||||||
|
|
||||||
BirdwatchPivotNote:
|
BirdwatchPivotNote:
|
||||||
required:
|
required:
|
||||||
|
|
@ -912,6 +909,7 @@ components:
|
||||||
- "community_tweet_non_member_public_community"
|
- "community_tweet_non_member_public_community"
|
||||||
- "non_compliant"
|
- "non_compliant"
|
||||||
- "dynamic_product_ad"
|
- "dynamic_product_ad"
|
||||||
|
- "stale_tweet"
|
||||||
place:
|
place:
|
||||||
additionalProperties: true # todo
|
additionalProperties: true # todo
|
||||||
|
|
||||||
|
|
@ -1219,13 +1217,13 @@ components:
|
||||||
$ref: "#/components/schemas/AdditionalMediaInfoCallToActions"
|
$ref: "#/components/schemas/AdditionalMediaInfoCallToActions"
|
||||||
|
|
||||||
AdditionalMediaInfoCallToActions:
|
AdditionalMediaInfoCallToActions:
|
||||||
required:
|
|
||||||
- "visit_site"
|
|
||||||
properties:
|
properties:
|
||||||
visit_site:
|
visit_site:
|
||||||
$ref: "#/components/schemas/AdditionalMediaInfoCallToActionsVisitSite"
|
$ref: "#/components/schemas/AdditionalMediaInfoCallToActionsUrl"
|
||||||
|
watch_now:
|
||||||
|
$ref: "#/components/schemas/AdditionalMediaInfoCallToActionsUrl"
|
||||||
|
|
||||||
AdditionalMediaInfoCallToActionsVisitSite:
|
AdditionalMediaInfoCallToActionsUrl:
|
||||||
required:
|
required:
|
||||||
- "url"
|
- "url"
|
||||||
properties:
|
properties:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue