mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
fix enum
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
3a8c8650fa
commit
428137d978
4 changed files with 19 additions and 8 deletions
2
dist/compatible/openapi-3.0.yaml
vendored
2
dist/compatible/openapi-3.0.yaml
vendored
|
|
@ -1511,6 +1511,7 @@ components:
|
||||||
- Like
|
- Like
|
||||||
- Location
|
- Location
|
||||||
- Sparkle
|
- Sparkle
|
||||||
|
- Conversation
|
||||||
type: string
|
type: string
|
||||||
landingUrl:
|
landingUrl:
|
||||||
$ref: '#/components/schemas/SocialContextLandingUrl'
|
$ref: '#/components/schemas/SocialContextLandingUrl'
|
||||||
|
|
@ -2273,6 +2274,7 @@ components:
|
||||||
type: string
|
type: string
|
||||||
state:
|
state:
|
||||||
enum:
|
enum:
|
||||||
|
- Enabled
|
||||||
- EnabledWithCount
|
- EnabledWithCount
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
|
|
|
||||||
2
dist/docs/openapi-3.0.yaml
vendored
2
dist/docs/openapi-3.0.yaml
vendored
|
|
@ -1511,6 +1511,7 @@ components:
|
||||||
- Like
|
- Like
|
||||||
- Location
|
- Location
|
||||||
- Sparkle
|
- Sparkle
|
||||||
|
- Conversation
|
||||||
type: string
|
type: string
|
||||||
landingUrl:
|
landingUrl:
|
||||||
$ref: '#/components/schemas/SocialContextLandingUrl'
|
$ref: '#/components/schemas/SocialContextLandingUrl'
|
||||||
|
|
@ -2273,6 +2274,7 @@ components:
|
||||||
type: string
|
type: string
|
||||||
state:
|
state:
|
||||||
enum:
|
enum:
|
||||||
|
- Enabled
|
||||||
- EnabledWithCount
|
- EnabledWithCount
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ components:
|
||||||
entryType:
|
entryType:
|
||||||
$ref: "#/components/schemas/ContentEntryType" # TimelineTimelineCursor
|
$ref: "#/components/schemas/ContentEntryType" # TimelineTimelineCursor
|
||||||
displayType:
|
displayType:
|
||||||
$ref: "#/components/schemas/DisplayType"
|
$ref: "#/components/schemas/DisplayType"
|
||||||
items:
|
items:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
|
|
@ -247,7 +247,6 @@ components:
|
||||||
- TimelineGeneralContext
|
- TimelineGeneralContext
|
||||||
- TimelineTopicContext
|
- TimelineTopicContext
|
||||||
|
|
||||||
|
|
||||||
TimelineGeneralContext:
|
TimelineGeneralContext:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
|
@ -255,7 +254,13 @@ components:
|
||||||
$ref: "#/components/schemas/SocialContextUnionType"
|
$ref: "#/components/schemas/SocialContextUnionType"
|
||||||
contextType:
|
contextType:
|
||||||
type: string # enum
|
type: string # enum
|
||||||
enum: ["Follow", "Pin", "Like", "Location", "Sparkle"]
|
enum:
|
||||||
|
- "Follow"
|
||||||
|
- "Pin"
|
||||||
|
- "Like"
|
||||||
|
- "Location"
|
||||||
|
- "Sparkle"
|
||||||
|
- "Conversation"
|
||||||
text:
|
text:
|
||||||
type: string
|
type: string
|
||||||
landingUrl:
|
landingUrl:
|
||||||
|
|
|
||||||
|
|
@ -231,7 +231,9 @@ components:
|
||||||
pattern: "^[0-9]+$"
|
pattern: "^[0-9]+$"
|
||||||
state:
|
state:
|
||||||
type: string
|
type: string
|
||||||
enum: [EnabledWithCount]
|
enum:
|
||||||
|
- Enabled
|
||||||
|
- EnabledWithCount
|
||||||
|
|
||||||
NoteTweet:
|
NoteTweet:
|
||||||
required:
|
required:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue