Skip to content
24 changes: 15 additions & 9 deletions src/openapi/schemas/user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,21 @@ components:
type: string
enum: ["Self", "Public", "MutualFollow", "Followers", "Following"]

UserLegacy:
UserLegacyCore:
required:
- "created_at"
- "name"
- "screen_name"
properties:
created_at:
$ref: "./general.yaml#/components/schemas/TwitterTimeFormat"
name:
type: string
screen_name:
type: string
UserLegacy:
required:
- "core"
- "default_profile"
- "default_profile_image"
- "description"
Expand All @@ -258,13 +270,11 @@ components:
- "listed_count"
- "location"
- "media_count"
- "name"
- "normal_followers_count"
- "pinned_tweet_ids_str"
- "possibly_sensitive"
- "profile_image_url_https"
- "profile_interstitial_type"
- "screen_name"
- "status"
- "statuses_count"
- "translator_type"
Expand All @@ -278,8 +288,6 @@ components:
type: boolean
can_media_tag:
type: boolean
created_at:
$ref: "./general.yaml#/components/schemas/TwitterTimeFormat"
default_profile:
type: boolean
default_profile_image:
Expand Down Expand Up @@ -315,8 +323,6 @@ components:
type: integer
muting:
type: boolean
name:
type: string
normal_followers_count:
type: integer
notifications:
Expand All @@ -341,8 +347,8 @@ components:
type: string
protected:
type: boolean
screen_name:
type: string
core:
$ref: "#/components/schemas/UserLegacyCore"
statuses_count:
type: integer
translator_type:
Expand Down
Loading