Skip to content

Commit bc6ead9

Browse files
authored
Merge pull request #94 from fa0311/dev
Dev
2 parents c28f419 + f1c7936 commit bc6ead9

5 files changed

Lines changed: 21 additions & 10 deletions

File tree

dist/compatible/openapi-3.0.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ components:
180180
- Member
181181
- Moderator
182182
- Admin
183+
- NonMember
183184
type: string
184185
user_results:
185186
$ref: '#/components/schemas/UserResults'
@@ -875,8 +876,11 @@ components:
875876
name:
876877
type: string
877878
path:
878-
items: {}
879-
type: list
879+
items:
880+
oneOf:
881+
- type: string
882+
- type: integer
883+
type: array
880884
retry_after:
881885
type: integer
882886
source:
@@ -1962,7 +1966,7 @@ components:
19621966
- TimelineCoverBehaviorNavigate
19631967
type: string
19641968
url:
1965-
type: TimelineCoverBehaviorUrl
1969+
$ref: '#/components/schemas/TimelineCoverBehaviorUrl'
19661970
required:
19671971
- type
19681972
TimelineCoverBehaviorUrl:

dist/docs/openapi-3.0.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ components:
180180
- Member
181181
- Moderator
182182
- Admin
183+
- NonMember
183184
type: string
184185
user_results:
185186
$ref: '#/components/schemas/UserResults'
@@ -875,8 +876,11 @@ components:
875876
name:
876877
type: string
877878
path:
878-
items: {}
879-
type: list
879+
items:
880+
oneOf:
881+
- type: string
882+
- type: integer
883+
type: array
880884
retry_after:
881885
type: integer
882886
source:
@@ -1962,7 +1966,7 @@ components:
19621966
- TimelineCoverBehaviorNavigate
19631967
type: string
19641968
url:
1965-
type: TimelineCoverBehaviorUrl
1969+
$ref: '#/components/schemas/TimelineCoverBehaviorUrl'
19661970
required:
19671971
- type
19681972
TimelineCoverBehaviorUrl:

src/openapi/response/error.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ components:
2626
items:
2727
$ref: "#/components/schemas/Location"
2828
path:
29-
type: list
30-
items: {} #List[Union[str,int]]
29+
type: array
30+
items:
31+
oneOf:
32+
- type: string
33+
- type: integer
3134
extensions:
3235
$ref: "#/components/schemas/ErrorExtensions"
3336
code:

src/openapi/schemas/instruction.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ components:
285285
type: string
286286
enum: [TimelineCoverBehaviorDismiss, TimelineCoverBehaviorNavigate]
287287
url:
288-
type: TimelineCoverBehaviorUrl
288+
$ref: "#/components/schemas/TimelineCoverBehaviorUrl"
289289

290290
TimelineCoverBehaviorUrl:
291291
required:

src/openapi/schemas/tweet.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ components:
438438
$ref: "#/components/schemas/Community"
439439
role:
440440
type: string
441-
enum: [Member, Moderator, Admin]
441+
enum: [Member, Moderator, Admin, NonMember]
442442
user_results:
443443
$ref: "user.yaml#/components/schemas/UserResults"
444444

0 commit comments

Comments
 (0)