openapi-codegen icon indicating copy to clipboard operation
openapi-codegen copied to clipboard

model.modelPackage should be value from config

Open mpnordland opened this issue 7 years ago • 1 comments

adaptor.js sets model.modelPackage to model.name https://github.com/Mermade/openapi-codegen/blob/55246ec01def2f753e07e6b3bfb4bb824082d14d/adaptor.js#L821

As near as I can tell, the python template expects this to be the value from the modelPackage property in the config file.

mpnordland avatar Apr 02 '18 22:04 mpnordland

https://github.com/swagger-api/swagger-codegen/blob/bad1885b4724f39a4c7946b0f90ab028b8085753/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/PythonClientCodegen.java#L470 Is the relevant code section from swagger-codegen

mpnordland avatar Apr 02 '18 23:04 mpnordland