feat(sdk): generate SDK for version v4.2.0#69
Merged
Conversation
The ApiClient failed to handle the body of non-2xx (error) API responses. The code generator did not create the necessary logic to deserialize the default error type defined in the OpenAPI specification. This caused the `response_body` in a caught `ApiError` to always be `None`, making it impossible to debug API failures through the SDK. This patch modifies the `response_deserialize` method to intelligently process error bodies. It now checks the `Content-Type` header of the response. If the content is JSON, it is decoded into a dictionary. If the content is not JSON or if parsing fails, it gracefully falls back to using the raw text of the body. This ensures that the `ApiError` exception always contains a useful payload (either a structured dictionary or raw text), significantly improving the debugging experience by making API errors transparent.
github-actions bot
pushed a commit
that referenced
this pull request
Sep 16, 2025
# [4.1.0-beta.6](v4.1.0-beta.5...v4.1.0-beta.6) (2025-09-16) ### Features * **sdk:** generate SDK for version v4.2.0 ([#69](#69)) ([eab286e](eab286e))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request contains the automatically generated SDK for OpenAPI specification version v4.2.0. The code has been updated to reflect the latest API changes.
Related Issue
N/A - This is a routine, automated SDK generation.
Motivation and Context
This change is required to ensure our SDK remains in sync with the latest version of Zitadel
How Has This Been Tested?
The SDK generation is an automated process.
Documentation
No new documentation page is required.