Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: provide the response body with UnexpectedStatusCode error #1105

Open
justenwalker opened this issue Nov 14, 2023 · 0 comments
Labels
enhancement New feature or request openapi-features OpenAPI features support issues

Comments

@justenwalker
Copy link

Description

When the API returns a response that isn't one of the expected response codes, the generated code returns

return res, validate.UnexpectedStatusCode(resp.StatusCode)

However, this is nearly useless because it only contains the status code. There is no way to look at the body of the request to debug without editing the generated code and seeing what response was given.

@justenwalker justenwalker added enhancement New feature or request openapi-features OpenAPI features support issues labels Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request openapi-features OpenAPI features support issues
Projects
None yet
Development

No branches or pull requests

1 participant