From 150430b24c4214b3e0587d0a0ac703e794a2326d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Thu, 15 Feb 2024 16:03:23 +0900 Subject: [PATCH] add additionalHooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- .../compatible_discriminator/openapi-3.0.yaml | 24 +++++-------------- tools/build_config.py | 1 + 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/dist/compatible_discriminator/openapi-3.0.yaml b/dist/compatible_discriminator/openapi-3.0.yaml index eceb0d0..d9a08f2 100644 --- a/dist/compatible_discriminator/openapi-3.0.yaml +++ b/dist/compatible_discriminator/openapi-3.0.yaml @@ -3888,9 +3888,7 @@ paths: content: application/json: schema: - oneOf: - - $ref: '#/components/schemas/CreateRetweetResponse' - - $ref: '#/components/schemas/Errors' + $ref: '#/components/schemas/CreateRetweetResponse' description: Successful operation headers: x-connection-hash: @@ -4115,9 +4113,7 @@ paths: content: application/json: schema: - oneOf: - - $ref: '#/components/schemas/CreateTweetResponse' - - $ref: '#/components/schemas/Errors' + $ref: '#/components/schemas/CreateTweetResponse' description: Successful operation headers: x-connection-hash: @@ -4191,9 +4187,7 @@ paths: content: application/json: schema: - oneOf: - - $ref: '#/components/schemas/DeleteRetweetResponse' - - $ref: '#/components/schemas/Errors' + $ref: '#/components/schemas/DeleteRetweetResponse' description: Successful operation headers: x-connection-hash: @@ -4267,9 +4261,7 @@ paths: content: application/json: schema: - oneOf: - - $ref: '#/components/schemas/DeleteTweetResponse' - - $ref: '#/components/schemas/Errors' + $ref: '#/components/schemas/DeleteTweetResponse' description: Successful operation headers: x-connection-hash: @@ -4343,9 +4335,7 @@ paths: content: application/json: schema: - oneOf: - - $ref: '#/components/schemas/FavoriteTweetResponseData' - - $ref: '#/components/schemas/Errors' + $ref: '#/components/schemas/FavoriteTweetResponseData' description: Successful operation headers: x-connection-hash: @@ -5498,9 +5488,7 @@ paths: content: application/json: schema: - oneOf: - - $ref: '#/components/schemas/UnfavoriteTweetResponseData' - - $ref: '#/components/schemas/Errors' + $ref: '#/components/schemas/UnfavoriteTweetResponseData' description: Successful operation headers: x-connection-hash: diff --git a/tools/build_config.py b/tools/build_config.py index 4b72ba3..63135e6 100644 --- a/tools/build_config.py +++ b/tools/build_config.py @@ -61,6 +61,7 @@ class Config: schemaType=None, contentType="application/json", ), + *additionalHooks, ] for key in ["post"] }