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:
|
role:
|
||||||
enum:
|
enum:
|
||||||
- Member
|
- Member
|
||||||
|
- Moderator
|
||||||
type: string
|
type: string
|
||||||
user_results:
|
user_results:
|
||||||
$ref: '#/components/schemas/UserResults'
|
$ref: '#/components/schemas/UserResults'
|
||||||
|
|
@ -400,7 +401,6 @@ components:
|
||||||
- id_str
|
- id_str
|
||||||
- name
|
- name
|
||||||
- description
|
- description
|
||||||
- question
|
|
||||||
- search_tags
|
- search_tags
|
||||||
- actions
|
- actions
|
||||||
- admin_results
|
- admin_results
|
||||||
|
|
@ -628,6 +628,7 @@ components:
|
||||||
- ShowMore
|
- ShowMore
|
||||||
- ShowMoreThreads
|
- ShowMoreThreads
|
||||||
- Gap
|
- Gap
|
||||||
|
- ShowMoreThreadsPrompt
|
||||||
type: string
|
type: string
|
||||||
DeleteBookmarkResponse:
|
DeleteBookmarkResponse:
|
||||||
properties:
|
properties:
|
||||||
|
|
@ -689,6 +690,8 @@ components:
|
||||||
properties:
|
properties:
|
||||||
actionText:
|
actionText:
|
||||||
type: string
|
type: string
|
||||||
|
labelText:
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- actionText
|
- actionText
|
||||||
type: object
|
type: object
|
||||||
|
|
|
||||||
|
|
@ -151,6 +151,7 @@ components:
|
||||||
role:
|
role:
|
||||||
enum:
|
enum:
|
||||||
- Member
|
- Member
|
||||||
|
- Moderator
|
||||||
type: string
|
type: string
|
||||||
user_results:
|
user_results:
|
||||||
$ref: '#/components/schemas/UserResults'
|
$ref: '#/components/schemas/UserResults'
|
||||||
|
|
@ -400,7 +401,6 @@ components:
|
||||||
- id_str
|
- id_str
|
||||||
- name
|
- name
|
||||||
- description
|
- description
|
||||||
- question
|
|
||||||
- search_tags
|
- search_tags
|
||||||
- actions
|
- actions
|
||||||
- admin_results
|
- admin_results
|
||||||
|
|
@ -628,6 +628,7 @@ components:
|
||||||
- ShowMore
|
- ShowMore
|
||||||
- ShowMoreThreads
|
- ShowMoreThreads
|
||||||
- Gap
|
- Gap
|
||||||
|
- ShowMoreThreadsPrompt
|
||||||
type: string
|
type: string
|
||||||
DeleteBookmarkResponse:
|
DeleteBookmarkResponse:
|
||||||
properties:
|
properties:
|
||||||
|
|
@ -689,6 +690,8 @@ components:
|
||||||
properties:
|
properties:
|
||||||
actionText:
|
actionText:
|
||||||
type: string
|
type: string
|
||||||
|
labelText:
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- actionText
|
- actionText
|
||||||
type: object
|
type: object
|
||||||
|
|
|
||||||
5
dist/docs/openapi-3.0.yaml
vendored
5
dist/docs/openapi-3.0.yaml
vendored
|
|
@ -151,6 +151,7 @@ components:
|
||||||
role:
|
role:
|
||||||
enum:
|
enum:
|
||||||
- Member
|
- Member
|
||||||
|
- Moderator
|
||||||
type: string
|
type: string
|
||||||
user_results:
|
user_results:
|
||||||
$ref: '#/components/schemas/UserResults'
|
$ref: '#/components/schemas/UserResults'
|
||||||
|
|
@ -400,7 +401,6 @@ components:
|
||||||
- id_str
|
- id_str
|
||||||
- name
|
- name
|
||||||
- description
|
- description
|
||||||
- question
|
|
||||||
- search_tags
|
- search_tags
|
||||||
- actions
|
- actions
|
||||||
- admin_results
|
- admin_results
|
||||||
|
|
@ -628,6 +628,7 @@ components:
|
||||||
- ShowMore
|
- ShowMore
|
||||||
- ShowMoreThreads
|
- ShowMoreThreads
|
||||||
- Gap
|
- Gap
|
||||||
|
- ShowMoreThreadsPrompt
|
||||||
type: string
|
type: string
|
||||||
DeleteBookmarkResponse:
|
DeleteBookmarkResponse:
|
||||||
properties:
|
properties:
|
||||||
|
|
@ -689,6 +690,8 @@ components:
|
||||||
properties:
|
properties:
|
||||||
actionText:
|
actionText:
|
||||||
type: string
|
type: string
|
||||||
|
labelText:
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- actionText
|
- actionText
|
||||||
type: object
|
type: object
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ components:
|
||||||
|
|
||||||
CursorType:
|
CursorType:
|
||||||
type: string
|
type: string
|
||||||
enum: [Top, Bottom, ShowMore, ShowMoreThreads, Gap] # Gap???
|
enum: [Top, Bottom, ShowMore, ShowMoreThreads, Gap, ShowMoreThreadsPrompt] # Gap???
|
||||||
|
|
||||||
TimelineTimelineItem:
|
TimelineTimelineItem:
|
||||||
required:
|
required:
|
||||||
|
|
@ -107,6 +107,8 @@ components:
|
||||||
properties:
|
properties:
|
||||||
actionText:
|
actionText:
|
||||||
type: string
|
type: string
|
||||||
|
labelText:
|
||||||
|
type: string
|
||||||
|
|
||||||
# ================= Module =================
|
# ================= Module =================
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -405,7 +405,7 @@ components:
|
||||||
$ref: "#/components/schemas/Community"
|
$ref: "#/components/schemas/Community"
|
||||||
role:
|
role:
|
||||||
type: string
|
type: string
|
||||||
enum: [Member]
|
enum: [Member, Moderator]
|
||||||
user_results:
|
user_results:
|
||||||
$ref: "user.yaml#/components/schemas/UserResults"
|
$ref: "user.yaml#/components/schemas/UserResults"
|
||||||
|
|
||||||
|
|
@ -422,7 +422,6 @@ components:
|
||||||
- "id_str"
|
- "id_str"
|
||||||
- "name"
|
- "name"
|
||||||
- "description"
|
- "description"
|
||||||
- "question"
|
|
||||||
- "search_tags"
|
- "search_tags"
|
||||||
- "actions"
|
- "actions"
|
||||||
- "admin_results"
|
- "admin_results"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue