From 9256a68c698c584a97570bb6b62a4e935dc8af08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Fri, 1 Nov 2024 01:42:06 +0900 Subject: [PATCH] feat schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/compatible/openapi-3.0.yaml | 5 ++++- dist/compatible_discriminator/openapi-3.0.yaml | 5 ++++- dist/docs/openapi-3.0.yaml | 5 ++++- src/openapi/schemas/content.yaml | 4 +++- src/openapi/schemas/tweet.yaml | 3 +-- 5 files changed, 16 insertions(+), 6 deletions(-) diff --git a/dist/compatible/openapi-3.0.yaml b/dist/compatible/openapi-3.0.yaml index 1c5df0d..6f90ec2 100644 --- a/dist/compatible/openapi-3.0.yaml +++ b/dist/compatible/openapi-3.0.yaml @@ -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 diff --git a/dist/compatible_discriminator/openapi-3.0.yaml b/dist/compatible_discriminator/openapi-3.0.yaml index 6609c42..c705d57 100644 --- a/dist/compatible_discriminator/openapi-3.0.yaml +++ b/dist/compatible_discriminator/openapi-3.0.yaml @@ -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 diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index 442cae6..85d7f0a 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -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 diff --git a/src/openapi/schemas/content.yaml b/src/openapi/schemas/content.yaml index fb968d0..e172add 100644 --- a/src/openapi/schemas/content.yaml +++ b/src/openapi/schemas/content.yaml @@ -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 ================= diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index d5211b0..d31b161 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -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"