Add polymorphism support for python (#6208)

* Add polymorphism support for python

* Update api_client

* Remove leading spaces

* Bugfix

* Catch case where swagger_types is none but get_real_child_model is defined
This commit is contained in:
Jeff
2017-08-02 02:15:26 -07:00
committed by wing328
parent 34e5838924
commit 6e72018a64
2 changed files with 15 additions and 9 deletions

View File

@@ -41,7 +41,7 @@ public class PythonClientCodegen extends DefaultCodegen implements CodegenConfig
// clear import mapping (from default generator) as python does not use it
// at the moment
importMapping.clear();
supportsInheritance = true;
modelPackage = "models";
apiPackage = "api";