-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[BUG][PYTHON] Client response is not respecting capital letters #10469
Comments
This issue is very similar to #5214 |
@spacether , thanks a lot for your quick feedback. Yeah, it looks like, but at the same time it doesn't. #5214 wants to customize how parameters are going to be "translated" to the client. What I'm currently seeking is that the generated Python client respect the schema at response time. #5214 will work smoothly because Do you think it makes sense ? |
In my solution both the request and response stay as in spec case. |
Alright, sounds good to me. Feel free to close :). Thanks a lot |
Heads up there is a new client, python-experimental which uses spec naming for all endpoint parameters and model properties. It was added in: #8325 |
Bug Report Checklist
Description
Python response containing keys in capital letters are being converted to lowercase. Therefore, schema is not being respect. I'm not sure if attribute map should be done at response time.
openapi-generator version
3.0.3
OpenAPI declaration file content or url
Generation Details
Python client was generated with default settings using the docker image provided (latest)
Steps to reproduce
Related issues/PRs
Suggest a fix
It's ok controlling this in a request scenario, where the arguments to your class object are all lowercase but regarding the response, I don't this this parsing as valuable as API's consumer expects to receive a response matching the schema definition, which is not happening currently.
Expected output should mimic the schema:
The text was updated successfully, but these errors were encountered: