swagger-codegen-generators
swagger-codegen-generators copied to clipboard
[Python] Client generator incomplete
Good Day,
i am currently trying to use the generated python-client but it seems the client is incomplete and/or incorrect. I generated the client with the docker image version 3.0.24 (i also generated the client with the version 3.0.25 and run a diff on the client but there where no changes)
For one this issue is related to the Issue #878 For me i couldn't get the client to work without changing every models constructor like i mentioned in the Issue. (I only changed the constructors of the models i testet not every single one)
The next thing is also related to the models. The generator created around 2100 models/classes, some of them are counted up (i have 345 different models named inline_response200-inline_response200344). The different models for the different routes make sense, but with a total of 2187 classes it is fairly difficult to check what the actual problem is. The shop has (at least defined in the spec) 230 different endpoints/routes.
Since this is my first time using/generating a client for a rest api i have no idea what to expect from the generator or how i could check if the specs is the problem. It seems @HugoMario you are involved to some degree with the python client generator (i found some Issues and pull-requests you approved) maybe you can help me.
I also noticed that there are no tests for the python client generator so i was wondering if anyone is currently using a python client.
Here is the OpenAPI v3 spec i used (since it is ~75.000 lines long i didn't included it directly): swagger.zip
I have the exact same frustrating problem. It's essentially making swagger-codegen unusable.