+ 2
- 1
@@ -68,7 +68,8 @@ public class PythonClientCodegen extends DefaultCodegen implements CodegenConfig
Created by: narenandu
CC'ing technical committee: @taxpon @frol @mbohlool @cbornet @kenjones-cisco to review the pull request if your PR is targeting python programming language.
It is kind of counter intuitive, but setting supportsInheritance = true
is failing to get the properties from the parent when a child model inherits. Didn't dive deep in to the actual base class for the code generation, but commenting out the line from PythonClientCodegen.java
fixed the issue.
This solves the reported issues
There could be multiple reasons since I didn't go to the root cause
AbstractPyCodegen.java
, which might/might not tackle the issuesupportsInheritence = true
in their generation code. Just to quote a few
AbstractJavaCodegen
(@bbdouglas @JFCote @sreeshas @jfiala @lukoyanov @cbornet @jeff9finger ) JavascriptClientCodegen
(@CodeNinjai @frol @cliffano)CSharpClientCodegen
/ AbstractCSharpCodegen.java
(@mandrean @jimschubert)AbstractKotlinCodegen
(@jimschubert @dr4ke616)Preferences