mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
enum value
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
3919f8f5c8
commit
8a7eba499f
3 changed files with 16 additions and 9 deletions
|
|
@ -69,7 +69,8 @@ components:
|
||||||
superFollowersCount:
|
superFollowersCount:
|
||||||
type: integer
|
type: integer
|
||||||
superFollowsApplicationStatus:
|
superFollowsApplicationStatus:
|
||||||
type: string # enum: NotStarted
|
type: string
|
||||||
|
enum: [NotStarted]
|
||||||
user_id:
|
user_id:
|
||||||
type: string
|
type: string
|
||||||
pattern: "^[0-9]+$"
|
pattern: "^[0-9]+$"
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,8 @@ components:
|
||||||
entryType:
|
entryType:
|
||||||
$ref: "#/components/schemas/ContentEntryType" # TimelineTimelineCursor
|
$ref: "#/components/schemas/ContentEntryType" # TimelineTimelineCursor
|
||||||
displayType:
|
displayType:
|
||||||
type: string # enum
|
type: string
|
||||||
|
enum: [Vertical, VerticalConversation]
|
||||||
items:
|
items:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
|
|
@ -183,7 +184,8 @@ components:
|
||||||
SocialContext:
|
SocialContext:
|
||||||
$ref: "#/components/schemas/SocialContext"
|
$ref: "#/components/schemas/SocialContext"
|
||||||
userDisplayType:
|
userDisplayType:
|
||||||
type: string # enum
|
type: string
|
||||||
|
enum: [User, UserDetailed]
|
||||||
user_results:
|
user_results:
|
||||||
$ref: "./user.yaml#/components/schemas/UserResults"
|
$ref: "./user.yaml#/components/schemas/UserResults"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,8 @@ components:
|
||||||
type: string
|
type: string
|
||||||
pattern: "^[0-9]+$"
|
pattern: "^[0-9]+$"
|
||||||
state:
|
state:
|
||||||
type: string # enum
|
type: string
|
||||||
|
enum: [EnabledWithCount]
|
||||||
|
|
||||||
TweetCard:
|
TweetCard:
|
||||||
properties:
|
properties:
|
||||||
|
|
@ -317,7 +318,8 @@ components:
|
||||||
type: string
|
type: string
|
||||||
format: uri
|
format: uri
|
||||||
type:
|
type:
|
||||||
type: string # enum photo
|
type: string
|
||||||
|
enum: [photo]
|
||||||
url:
|
url:
|
||||||
type: string
|
type: string
|
||||||
format: uri
|
format: uri
|
||||||
|
|
@ -371,7 +373,8 @@ components:
|
||||||
type: string
|
type: string
|
||||||
format: uri
|
format: uri
|
||||||
type:
|
type:
|
||||||
type: string # enum # photo | video
|
type: string
|
||||||
|
enum: [photo, video, animated_gif]
|
||||||
url:
|
url:
|
||||||
type: string
|
type: string
|
||||||
format: uri
|
format: uri
|
||||||
|
|
@ -469,7 +472,8 @@ components:
|
||||||
- "status"
|
- "status"
|
||||||
properties:
|
properties:
|
||||||
status:
|
status:
|
||||||
type: string # enum Available
|
type: string
|
||||||
|
enum: [Available]
|
||||||
|
|
||||||
MediaSizes:
|
MediaSizes:
|
||||||
required:
|
required:
|
||||||
|
|
@ -498,5 +502,5 @@ components:
|
||||||
h:
|
h:
|
||||||
type: integer
|
type: integer
|
||||||
resize:
|
resize:
|
||||||
type: string # enum fit
|
type: string
|
||||||
|
enum: [crop, fit]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue