Open colford opened 4 years ago
👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.
The team will review the labels and make any necessary changes.
Apologies for hijacking the issue, but have you tried to generate a Python client for this spec? It seems to me that style: deepObject
is completely ignored there, but I could not find a relevant issue already open.
Apologies for hijacking the issue, but have you tried to generate a Python client for this spec? It seems to me that
style: deepObject
is completely ignored there, but I could not find a relevant issue already open.
No, I didn't since I couldn't get the server side to work with python and deepObjects.
Bug Report Checklist
Description
When a query has deepObjects either a BAD REQUEST with "missing parameter" is observed with python3.5 or an exception is raised with python3.6 in _resolve_param_duplicates.
openapi-generator version
5.0.0-SNAPSHOT
OpenAPI declaration file content or url
Generation Details
./run-in-docker.sh generate -i PNT-A/Fake.yaml -g python-flask -o PNT-A/CDN/Fake --package-name=FaakeINF
Steps to reproduce
Created using docker tools in Ubuntu and then ran. Connected to http://localhost:8080/v1/ui and used the "Try it Out" on the /obs/fake path, accepted all the defaults and pressed execute. Expected it to come back with 'do some magic!'
Related issues/PRs
Only some for typescript but not for python-flask.
Suggest a fix
Looks like it is not handling the duplicates in the URL with the deepObject:
http://localhost:8080/v1/obs/fake?fakeit[part1]=37.222864&fakeit[part2]=-80.420806&fakeit[part1]=37.223637&fakeit[part2]=-80.420153&fakeit[part1]=37.224372&fakeit[part2]=-80.419886
python3.6 stack dump is: