Skip to content

Commit 3bb5ae8

Browse files
committed
fix: close #95
1 parent bc6ead9 commit 3bb5ae8

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

src/openapi/schemas/user.yaml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,21 @@ components:
242242
type: string
243243
enum: ["Self", "Public", "MutualFollow", "Followers", "Following"]
244244

245-
UserLegacy:
245+
UserLegacyCore:
246246
required:
247247
- "created_at"
248+
- "name"
249+
- "screen_name"
250+
properties:
251+
created_at:
252+
$ref: "./general.yaml#/components/schemas/TwitterTimeFormat"
253+
name:
254+
type: string
255+
screen_name:
256+
type: string
257+
UserLegacy:
258+
required:
259+
- "core"
248260
- "default_profile"
249261
- "default_profile_image"
250262
- "description"
@@ -258,13 +270,11 @@ components:
258270
- "listed_count"
259271
- "location"
260272
- "media_count"
261-
- "name"
262273
- "normal_followers_count"
263274
- "pinned_tweet_ids_str"
264275
- "possibly_sensitive"
265276
- "profile_image_url_https"
266277
- "profile_interstitial_type"
267-
- "screen_name"
268278
- "status"
269279
- "statuses_count"
270280
- "translator_type"
@@ -278,8 +288,6 @@ components:
278288
type: boolean
279289
can_media_tag:
280290
type: boolean
281-
created_at:
282-
$ref: "./general.yaml#/components/schemas/TwitterTimeFormat"
283291
default_profile:
284292
type: boolean
285293
default_profile_image:
@@ -314,9 +322,6 @@ components:
314322
media_count:
315323
type: integer
316324
muting:
317-
type: boolean
318-
name:
319-
type: string
320325
normal_followers_count:
321326
type: integer
322327
notifications:
@@ -341,8 +346,8 @@ components:
341346
type: string
342347
protected:
343348
type: boolean
344-
screen_name:
345-
type: string
349+
core:
350+
$ref: "#/components/schemas/UserLegacyCore"
346351
statuses_count:
347352
type: integer
348353
translator_type:

0 commit comments

Comments
 (0)