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

add SensitiveMediaWarning

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2024-02-13 15:44:20 +09:00
parent e9162dc2fc
commit d33b37b200
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
3 changed files with 61 additions and 50 deletions

View file

@ -23,7 +23,6 @@ components:
required:
- "__typename"
- "tweet"
- "limitedActionResults"
properties:
__typename:
$ref: "./typename.yaml#/components/schemas/TypeName" # TweetWithVisibilityResults
@ -120,13 +119,6 @@ components:
Tweet:
required:
- "rest_id"
# If the tweet has been edited, this property does not exist.
# - "core"
- "edit_control"
- "is_translatable"
# - "source"
# - "legacy"
- "views"
properties:
__typename:
$ref: "./typename.yaml#/components/schemas/TypeName" # null | Tweet
@ -347,18 +339,7 @@ components:
- "result"
properties:
result:
$ref: "#/components/schemas/QuotedRefResultData"
QuotedRefResultData:
required:
- "__typename"
- "rest_id"
properties:
__typename:
$ref: "./typename.yaml#/components/schemas/TypeName" # Tweet
rest_id:
type: string
pattern: "^[0-9]+$"
$ref: "#/components/schemas/TweetUnion"
SuperFollowsReplyUserResult:
required:
@ -1061,6 +1042,8 @@ components:
pattern: "^[0-9]+$"
ext_alt_text:
type: string
sensitive_media_warning:
$ref: "#/components/schemas/SensitiveMediaWarning"
TweetLegacyScopes:
required:
@ -1155,6 +1138,8 @@ components:
pattern: "^[0-9]+$"
ext_alt_text:
type: string
sensitive_media_warning:
$ref: "#/components/schemas/SensitiveMediaWarning"
MediaOriginalInfo:
required:
@ -1265,6 +1250,22 @@ components:
type: string
enum: [Available, Unavailable]
SensitiveMediaWarning:
required:
- "adult_content"
- "graphic_violence"
- "other"
properties:
adult_content:
type: boolean
default: false
graphic_violence:
type: boolean
default: false
other:
type: boolean
default: false
MediaSizes:
required:
- "large"