1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 15:40:26 +01:00

remove default value

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2024-09-29 19:11:35 +09:00
parent 0bf572706a
commit f33bb20091
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
6 changed files with 0 additions and 177 deletions

View file

@ -1422,13 +1422,10 @@ components:
SensitiveMediaWarning:
properties:
adult_content:
default: false
type: boolean
graphic_violence:
default: false
type: boolean
other:
default: false
type: boolean
required:
- adult_content
@ -1841,7 +1838,6 @@ components:
itemType:
$ref: '#/components/schemas/ContentEntryType'
stopOnEmptyResponse:
default: false
type: boolean
value:
type: string
@ -1849,7 +1845,6 @@ components:
- __typename
- cursorType
- value
- stopOnEmptyResponse
TimelineTimelineItem:
properties:
__typename:
@ -2025,7 +2020,6 @@ components:
has_birdwatch_notes:
type: boolean
is_translatable:
default: false
type: boolean
legacy:
$ref: '#/components/schemas/TweetLegacy'
@ -2355,10 +2349,8 @@ components:
place:
additionalProperties: true
possibly_sensitive:
default: false
type: boolean
possibly_sensitive_editable:
default: false
type: boolean
quote_count:
type: integer
@ -2610,7 +2602,6 @@ components:
has_hidden_likes_on_profile:
type: boolean
has_nft_avatar:
default: false
type: boolean
highlights_info:
$ref: '#/components/schemas/UserHighlightsInfo'
@ -2618,7 +2609,6 @@ components:
pattern: ^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$
type: string
is_blue_verified:
default: false
type: boolean
is_profile_translatable:
type: boolean
@ -2640,13 +2630,10 @@ components:
pattern: ^[0-9]+$
type: string
super_follow_eligible:
default: false
type: boolean
super_followed_by:
default: false
type: boolean
super_following:
default: false
type: boolean
tipjar_settings:
$ref: '#/components/schemas/UserTipJarSettings'
@ -2661,9 +2648,6 @@ components:
- is_blue_verified
- legacy
- rest_id
- super_follow_eligible
- super_followed_by
- super_following
- profile_image_shape
UserFeatures:
properties:
@ -2717,24 +2701,18 @@ components:
UserLegacy:
properties:
blocked_by:
default: false
type: boolean
blocking:
default: false
type: boolean
can_dm:
default: false
type: boolean
can_media_tag:
default: false
type: boolean
created_at:
$ref: '#/components/schemas/TwitterTimeFormat'
default_profile:
default: false
type: boolean
default_profile_image:
default: false
type: boolean
description:
type: string
@ -2744,54 +2722,40 @@ components:
fast_followers_count:
type: integer
favourites_count:
default: 0
type: integer
follow_request_sent:
default: false
type: boolean
followed_by:
default: false
type: boolean
followers_count:
default: 0
type: integer
following:
default: false
type: boolean
friends_count:
default: 0
type: integer
has_custom_timelines:
default: false
type: boolean
is_translator:
default: false
type: boolean
listed_count:
default: 0
type: integer
location:
type: string
media_count:
default: 0
type: integer
muting:
default: false
type: boolean
name:
type: string
normal_followers_count:
default: 0
type: integer
notifications:
default: false
type: boolean
pinned_tweet_ids_str:
items:
type: string
type: array
possibly_sensitive:
default: false
type: boolean
profile_banner_extensions:
type: object
@ -2806,12 +2770,10 @@ components:
profile_interstitial_type:
type: string
protected:
default: false
type: boolean
screen_name:
type: string
statuses_count:
default: 0
type: integer
translator_type:
type: string
@ -2825,15 +2787,12 @@ components:
- Government
type: string
want_retweets:
default: false
type: boolean
withheld_in_countries:
items:
type: string
type: array
required:
- blocked_by
- blocking
- can_dm
- can_media_tag
- created_at
@ -2850,7 +2809,6 @@ components:
- listed_count
- location
- media_count
- muting
- name
- normal_followers_count
- pinned_tweet_ids_str
@ -3074,7 +3032,6 @@ components:
UserVerificationInfo:
properties:
is_identity_verified:
default: false
type: boolean
reason:
$ref: '#/components/schemas/UserVerificationInfoReason'

View file

@ -1422,13 +1422,10 @@ components:
SensitiveMediaWarning:
properties:
adult_content:
default: false
type: boolean
graphic_violence:
default: false
type: boolean
other:
default: false
type: boolean
required:
- adult_content
@ -1841,7 +1838,6 @@ components:
itemType:
$ref: '#/components/schemas/ContentEntryType'
stopOnEmptyResponse:
default: false
type: boolean
value:
type: string
@ -1849,7 +1845,6 @@ components:
- __typename
- cursorType
- value
- stopOnEmptyResponse
TimelineTimelineItem:
properties:
__typename:
@ -2025,7 +2020,6 @@ components:
has_birdwatch_notes:
type: boolean
is_translatable:
default: false
type: boolean
legacy:
$ref: '#/components/schemas/TweetLegacy'
@ -2355,10 +2349,8 @@ components:
place:
additionalProperties: true
possibly_sensitive:
default: false
type: boolean
possibly_sensitive_editable:
default: false
type: boolean
quote_count:
type: integer
@ -2610,7 +2602,6 @@ components:
has_hidden_likes_on_profile:
type: boolean
has_nft_avatar:
default: false
type: boolean
highlights_info:
$ref: '#/components/schemas/UserHighlightsInfo'
@ -2618,7 +2609,6 @@ components:
pattern: ^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$
type: string
is_blue_verified:
default: false
type: boolean
is_profile_translatable:
type: boolean
@ -2640,13 +2630,10 @@ components:
pattern: ^[0-9]+$
type: string
super_follow_eligible:
default: false
type: boolean
super_followed_by:
default: false
type: boolean
super_following:
default: false
type: boolean
tipjar_settings:
$ref: '#/components/schemas/UserTipJarSettings'
@ -2661,9 +2648,6 @@ components:
- is_blue_verified
- legacy
- rest_id
- super_follow_eligible
- super_followed_by
- super_following
- profile_image_shape
UserFeatures:
properties:
@ -2717,24 +2701,18 @@ components:
UserLegacy:
properties:
blocked_by:
default: false
type: boolean
blocking:
default: false
type: boolean
can_dm:
default: false
type: boolean
can_media_tag:
default: false
type: boolean
created_at:
$ref: '#/components/schemas/TwitterTimeFormat'
default_profile:
default: false
type: boolean
default_profile_image:
default: false
type: boolean
description:
type: string
@ -2744,54 +2722,40 @@ components:
fast_followers_count:
type: integer
favourites_count:
default: 0
type: integer
follow_request_sent:
default: false
type: boolean
followed_by:
default: false
type: boolean
followers_count:
default: 0
type: integer
following:
default: false
type: boolean
friends_count:
default: 0
type: integer
has_custom_timelines:
default: false
type: boolean
is_translator:
default: false
type: boolean
listed_count:
default: 0
type: integer
location:
type: string
media_count:
default: 0
type: integer
muting:
default: false
type: boolean
name:
type: string
normal_followers_count:
default: 0
type: integer
notifications:
default: false
type: boolean
pinned_tweet_ids_str:
items:
type: string
type: array
possibly_sensitive:
default: false
type: boolean
profile_banner_extensions:
type: object
@ -2806,12 +2770,10 @@ components:
profile_interstitial_type:
type: string
protected:
default: false
type: boolean
screen_name:
type: string
statuses_count:
default: 0
type: integer
translator_type:
type: string
@ -2825,15 +2787,12 @@ components:
- Government
type: string
want_retweets:
default: false
type: boolean
withheld_in_countries:
items:
type: string
type: array
required:
- blocked_by
- blocking
- can_dm
- can_media_tag
- created_at
@ -2850,7 +2809,6 @@ components:
- listed_count
- location
- media_count
- muting
- name
- normal_followers_count
- pinned_tweet_ids_str
@ -3074,7 +3032,6 @@ components:
UserVerificationInfo:
properties:
is_identity_verified:
default: false
type: boolean
reason:
$ref: '#/components/schemas/UserVerificationInfoReason'

View file

@ -1422,13 +1422,10 @@ components:
SensitiveMediaWarning:
properties:
adult_content:
default: false
type: boolean
graphic_violence:
default: false
type: boolean
other:
default: false
type: boolean
required:
- adult_content
@ -1841,7 +1838,6 @@ components:
itemType:
$ref: '#/components/schemas/ContentEntryType'
stopOnEmptyResponse:
default: false
type: boolean
value:
type: string
@ -1849,7 +1845,6 @@ components:
- __typename
- cursorType
- value
- stopOnEmptyResponse
TimelineTimelineItem:
properties:
__typename:
@ -2025,7 +2020,6 @@ components:
has_birdwatch_notes:
type: boolean
is_translatable:
default: false
type: boolean
legacy:
$ref: '#/components/schemas/TweetLegacy'
@ -2355,10 +2349,8 @@ components:
place:
additionalProperties: true
possibly_sensitive:
default: false
type: boolean
possibly_sensitive_editable:
default: false
type: boolean
quote_count:
type: integer
@ -2610,7 +2602,6 @@ components:
has_hidden_likes_on_profile:
type: boolean
has_nft_avatar:
default: false
type: boolean
highlights_info:
$ref: '#/components/schemas/UserHighlightsInfo'
@ -2618,7 +2609,6 @@ components:
pattern: ^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$
type: string
is_blue_verified:
default: false
type: boolean
is_profile_translatable:
type: boolean
@ -2640,13 +2630,10 @@ components:
pattern: ^[0-9]+$
type: string
super_follow_eligible:
default: false
type: boolean
super_followed_by:
default: false
type: boolean
super_following:
default: false
type: boolean
tipjar_settings:
$ref: '#/components/schemas/UserTipJarSettings'
@ -2661,9 +2648,6 @@ components:
- is_blue_verified
- legacy
- rest_id
- super_follow_eligible
- super_followed_by
- super_following
- profile_image_shape
UserFeatures:
properties:
@ -2717,24 +2701,18 @@ components:
UserLegacy:
properties:
blocked_by:
default: false
type: boolean
blocking:
default: false
type: boolean
can_dm:
default: false
type: boolean
can_media_tag:
default: false
type: boolean
created_at:
$ref: '#/components/schemas/TwitterTimeFormat'
default_profile:
default: false
type: boolean
default_profile_image:
default: false
type: boolean
description:
type: string
@ -2744,54 +2722,40 @@ components:
fast_followers_count:
type: integer
favourites_count:
default: 0
type: integer
follow_request_sent:
default: false
type: boolean
followed_by:
default: false
type: boolean
followers_count:
default: 0
type: integer
following:
default: false
type: boolean
friends_count:
default: 0
type: integer
has_custom_timelines:
default: false
type: boolean
is_translator:
default: false
type: boolean
listed_count:
default: 0
type: integer
location:
type: string
media_count:
default: 0
type: integer
muting:
default: false
type: boolean
name:
type: string
normal_followers_count:
default: 0
type: integer
notifications:
default: false
type: boolean
pinned_tweet_ids_str:
items:
type: string
type: array
possibly_sensitive:
default: false
type: boolean
profile_banner_extensions:
type: object
@ -2806,12 +2770,10 @@ components:
profile_interstitial_type:
type: string
protected:
default: false
type: boolean
screen_name:
type: string
statuses_count:
default: 0
type: integer
translator_type:
type: string
@ -2825,15 +2787,12 @@ components:
- Government
type: string
want_retweets:
default: false
type: boolean
withheld_in_countries:
items:
type: string
type: array
required:
- blocked_by
- blocking
- can_dm
- can_media_tag
- created_at
@ -2850,7 +2809,6 @@ components:
- listed_count
- location
- media_count
- muting
- name
- normal_followers_count
- pinned_tweet_ids_str
@ -3074,7 +3032,6 @@ components:
UserVerificationInfo:
properties:
is_identity_verified:
default: false
type: boolean
reason:
$ref: '#/components/schemas/UserVerificationInfoReason'

View file

@ -84,7 +84,6 @@ components:
- "__typename"
- "cursorType"
- "value"
- "stopOnEmptyResponse"
properties:
__typename:
$ref: "./typename.yaml#/components/schemas/TypeName" # TimelineTimelineCursor
@ -98,7 +97,6 @@ components:
type: string
stopOnEmptyResponse:
type: boolean
default: false
displayTreatment:
$ref: "#/components/schemas/DisplayTreatment"

View file

@ -171,7 +171,6 @@ components:
$ref: "#/components/schemas/TweetEditPrespective"
is_translatable:
type: boolean
default: false
source:
type: string # html (<a href="http://twitter.com/download/android" rel="nofollow">Twitter for Android</a>)
legacy:
@ -895,10 +894,8 @@ components:
type: string # enum
possibly_sensitive:
type: boolean
default: false
possibly_sensitive_editable:
type: boolean
default: false
quote_count:
type: integer
reply_count:
@ -1300,13 +1297,10 @@ components:
properties:
adult_content:
type: boolean
default: false
graphic_violence:
type: boolean
default: false
other:
type: boolean
default: false
MediaSizes:
required:

View file

@ -35,9 +35,6 @@ components:
- "is_blue_verified"
- "legacy"
- "rest_id"
- "super_follow_eligible"
- "super_followed_by"
- "super_following"
- "profile_image_shape"
properties:
@ -50,13 +47,11 @@ components:
type: boolean
has_nft_avatar:
type: boolean
default: false
id:
type: string
pattern: "^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$" # base64
is_blue_verified:
type: boolean
default: false
legacy:
$ref: "#/components/schemas/UserLegacy"
rest_id:
@ -67,13 +62,10 @@ components:
additionalProperties: true # todo
super_follow_eligible:
type: boolean
default: false
super_followed_by:
type: boolean
default: false
super_following:
type: boolean
default: false
profile_image_shape:
type: string
enum:
@ -147,7 +139,6 @@ components:
properties:
is_identity_verified:
type: boolean
default: false
reason:
$ref: "#/components/schemas/UserVerificationInfoReason"
@ -249,8 +240,6 @@ components:
UserLegacy:
required:
- "blocked_by"
- "blocking"
- "can_dm"
- "can_media_tag"
- "created_at"
@ -260,25 +249,19 @@ components:
- "entities"
- "fast_followers_count"
- "favourites_count"
# 31 # - "follow_request_sent"
# 31 # - "followed_by"
- "followers_count"
# 31 # - "following"
- "friends_count"
- "has_custom_timelines"
- "is_translator"
- "listed_count"
- "location"
- "media_count"
- "muting"
- "name"
- "normal_followers_count"
# 31 # - "notifications"
- "pinned_tweet_ids_str"
- "possibly_sensitive"
- "profile_image_url_https"
- "profile_interstitial_type"
# 31 # - "protected"
- "screen_name"
- "status"
- "statuses_count"
@ -288,24 +271,18 @@ components:
properties:
blocked_by:
type: boolean
default: false
blocking:
type: boolean
default: false
can_dm:
type: boolean
default: false
can_media_tag:
type: boolean
default: false
created_at:
$ref: "./general.yaml#/components/schemas/TwitterTimeFormat"
default_profile:
type: boolean
default: false
default_profile_image:
type: boolean
default: false
description:
type: string
entities:
@ -315,54 +292,40 @@ components:
type: integer
favourites_count:
type: integer
default: 0
follow_request_sent:
type: boolean
default: false
followed_by:
type: boolean
default: false
followers_count:
type: integer
default: 0
following:
type: boolean
default: false
friends_count:
type: integer
default: 0
has_custom_timelines:
type: boolean
default: false
is_translator:
type: boolean
default: false
listed_count:
type: integer
default: 0
location:
type: string
media_count:
type: integer
default: 0
muting:
type: boolean
default: false
name:
type: string
normal_followers_count:
type: integer
default: 0
notifications:
type: boolean
default: false
pinned_tweet_ids_str:
type: array
items:
type: string
possibly_sensitive:
type: boolean
default: false
profile_banner_extensions:
type: object
profile_banner_url:
@ -377,12 +340,10 @@ components:
type: string
protected:
type: boolean
default: false
screen_name:
type: string
statuses_count:
type: integer
default: 0
translator_type:
type: string
url:
@ -391,7 +352,6 @@ components:
type: boolean
want_retweets:
type: boolean
default: false
verified_type:
type: string
enum: ["Business", "Government"]