Skip to content

Commit 0fd3931

Browse files
authored
Merge pull request #96 from rxliuli/fix/95
fix: close #95
2 parents f1c7936 + 817a5de commit 0fd3931

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

src/openapi/schemas/user.yaml

Lines changed: 15 additions & 9 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:
@@ -315,8 +323,6 @@ components:
315323
type: integer
316324
muting:
317325
type: boolean
318-
name:
319-
type: string
320326
normal_followers_count:
321327
type: integer
322328
notifications:
@@ -341,8 +347,8 @@ components:
341347
type: string
342348
protected:
343349
type: boolean
344-
screen_name:
345-
type: string
350+
core:
351+
$ref: "#/components/schemas/UserLegacyCore"
346352
statuses_count:
347353
type: integer
348354
translator_type:

0 commit comments

Comments
 (0)