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 0caebce..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"] } @@ -93,6 +94,6 @@ class Config: ), "compatible_discriminator": self.hooks_generator( queryParameterJson=False, - removelegacyDiscriminatorBehavior=True, + removeLegacyDiscriminatorBehavior=True, ), }