mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
feat schema
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
e8f6402a65
commit
9256a68c69
5 changed files with 16 additions and 6 deletions
5
dist/compatible/openapi-3.0.yaml
vendored
5
dist/compatible/openapi-3.0.yaml
vendored
|
|
@ -151,6 +151,7 @@ components:
|
|||
role:
|
||||
enum:
|
||||
- Member
|
||||
- Moderator
|
||||
type: string
|
||||
user_results:
|
||||
$ref: '#/components/schemas/UserResults'
|
||||
|
|
@ -400,7 +401,6 @@ components:
|
|||
- id_str
|
||||
- name
|
||||
- description
|
||||
- question
|
||||
- search_tags
|
||||
- actions
|
||||
- admin_results
|
||||
|
|
@ -628,6 +628,7 @@ components:
|
|||
- ShowMore
|
||||
- ShowMoreThreads
|
||||
- Gap
|
||||
- ShowMoreThreadsPrompt
|
||||
type: string
|
||||
DeleteBookmarkResponse:
|
||||
properties:
|
||||
|
|
@ -689,6 +690,8 @@ components:
|
|||
properties:
|
||||
actionText:
|
||||
type: string
|
||||
labelText:
|
||||
type: string
|
||||
required:
|
||||
- actionText
|
||||
type: object
|
||||
|
|
|
|||
|
|
@ -151,6 +151,7 @@ components:
|
|||
role:
|
||||
enum:
|
||||
- Member
|
||||
- Moderator
|
||||
type: string
|
||||
user_results:
|
||||
$ref: '#/components/schemas/UserResults'
|
||||
|
|
@ -400,7 +401,6 @@ components:
|
|||
- id_str
|
||||
- name
|
||||
- description
|
||||
- question
|
||||
- search_tags
|
||||
- actions
|
||||
- admin_results
|
||||
|
|
@ -628,6 +628,7 @@ components:
|
|||
- ShowMore
|
||||
- ShowMoreThreads
|
||||
- Gap
|
||||
- ShowMoreThreadsPrompt
|
||||
type: string
|
||||
DeleteBookmarkResponse:
|
||||
properties:
|
||||
|
|
@ -689,6 +690,8 @@ components:
|
|||
properties:
|
||||
actionText:
|
||||
type: string
|
||||
labelText:
|
||||
type: string
|
||||
required:
|
||||
- actionText
|
||||
type: object
|
||||
|
|
|
|||
5
dist/docs/openapi-3.0.yaml
vendored
5
dist/docs/openapi-3.0.yaml
vendored
|
|
@ -151,6 +151,7 @@ components:
|
|||
role:
|
||||
enum:
|
||||
- Member
|
||||
- Moderator
|
||||
type: string
|
||||
user_results:
|
||||
$ref: '#/components/schemas/UserResults'
|
||||
|
|
@ -400,7 +401,6 @@ components:
|
|||
- id_str
|
||||
- name
|
||||
- description
|
||||
- question
|
||||
- search_tags
|
||||
- actions
|
||||
- admin_results
|
||||
|
|
@ -628,6 +628,7 @@ components:
|
|||
- ShowMore
|
||||
- ShowMoreThreads
|
||||
- Gap
|
||||
- ShowMoreThreadsPrompt
|
||||
type: string
|
||||
DeleteBookmarkResponse:
|
||||
properties:
|
||||
|
|
@ -689,6 +690,8 @@ components:
|
|||
properties:
|
||||
actionText:
|
||||
type: string
|
||||
labelText:
|
||||
type: string
|
||||
required:
|
||||
- actionText
|
||||
type: object
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ components:
|
|||
|
||||
CursorType:
|
||||
type: string
|
||||
enum: [Top, Bottom, ShowMore, ShowMoreThreads, Gap] # Gap???
|
||||
enum: [Top, Bottom, ShowMore, ShowMoreThreads, Gap, ShowMoreThreadsPrompt] # Gap???
|
||||
|
||||
TimelineTimelineItem:
|
||||
required:
|
||||
|
|
@ -107,6 +107,8 @@ components:
|
|||
properties:
|
||||
actionText:
|
||||
type: string
|
||||
labelText:
|
||||
type: string
|
||||
|
||||
# ================= Module =================
|
||||
|
||||
|
|
|
|||
|
|
@ -405,7 +405,7 @@ components:
|
|||
$ref: "#/components/schemas/Community"
|
||||
role:
|
||||
type: string
|
||||
enum: [Member]
|
||||
enum: [Member, Moderator]
|
||||
user_results:
|
||||
$ref: "user.yaml#/components/schemas/UserResults"
|
||||
|
||||
|
|
@ -422,7 +422,6 @@ components:
|
|||
- "id_str"
|
||||
- "name"
|
||||
- "description"
|
||||
- "question"
|
||||
- "search_tags"
|
||||
- "actions"
|
||||
- "admin_results"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue