From 57fd24311fe61bf7a9c97848579855c86e65e36d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Mon, 30 Sep 2024 11:21:20 +0900 Subject: [PATCH] fix conversation_control MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/compatible/openapi-3.0.yaml | 17 ++++++----------- dist/compatible_discriminator/openapi-3.0.yaml | 17 ++++++----------- dist/docs/openapi-3.0.yaml | 17 ++++++----------- src/config/placeholder.json | 4 +--- src/openapi/schemas/tweet.yaml | 2 +- 5 files changed, 20 insertions(+), 37 deletions(-) diff --git a/dist/compatible/openapi-3.0.yaml b/dist/compatible/openapi-3.0.yaml index e004aab..306278b 100644 --- a/dist/compatible/openapi-3.0.yaml +++ b/dist/compatible/openapi-3.0.yaml @@ -2320,7 +2320,7 @@ components: bookmarked: type: boolean conversation_control: - $ref: '#/components/schemas/ConversationControl' + additionalProperties: true conversation_id_str: pattern: ^[0-9]+$ type: string @@ -4373,17 +4373,12 @@ paths: type: string conversation_control: properties: - conversation_control: - properties: - mode: - default: Community - example: Community - type: string - required: - - mode - type: object + mode: + default: Community + example: Community + type: string required: - - conversation_control + - mode type: object dark_request: default: false diff --git a/dist/compatible_discriminator/openapi-3.0.yaml b/dist/compatible_discriminator/openapi-3.0.yaml index 6f54b5e..2b99bb2 100644 --- a/dist/compatible_discriminator/openapi-3.0.yaml +++ b/dist/compatible_discriminator/openapi-3.0.yaml @@ -2320,7 +2320,7 @@ components: bookmarked: type: boolean conversation_control: - $ref: '#/components/schemas/ConversationControl' + additionalProperties: true conversation_id_str: pattern: ^[0-9]+$ type: string @@ -4367,17 +4367,12 @@ paths: type: string conversation_control: properties: - conversation_control: - properties: - mode: - default: Community - example: Community - type: string - required: - - mode - type: object + mode: + default: Community + example: Community + type: string required: - - conversation_control + - mode type: object dark_request: default: false diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index 799e822..46c51c9 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -2320,7 +2320,7 @@ components: bookmarked: type: boolean conversation_control: - $ref: '#/components/schemas/ConversationControl' + additionalProperties: true conversation_id_str: pattern: ^[0-9]+$ type: string @@ -4479,17 +4479,12 @@ paths: type: string conversation_control: properties: - conversation_control: - properties: - mode: - default: Community - example: Community - type: string - required: - - mode - type: object + mode: + default: Community + example: Community + type: string required: - - conversation_control + - mode type: object dark_request: default: false diff --git a/src/config/placeholder.json b/src/config/placeholder.json index a3afda5..1bedf9b 100644 --- a/src/config/placeholder.json +++ b/src/config/placeholder.json @@ -711,9 +711,7 @@ "dark_request": false, "disallowed_reply_options?": {}, "conversation_control?": { - "conversation_control": { - "mode": "Community" - } + "mode": "Community" }, "attachment_url?": "https://x.com/elonmusk/status/1349129669258448897" }, diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index ae69e65..d5211b0 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -932,7 +932,7 @@ components: type: string pattern: "^[0-9]+$" conversation_control: - $ref: "#/components/schemas/ConversationControl" + additionalProperties: true # todo limited_actions: type: string enum: