We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 61a38b1 + c8cb68f commit eda521eCopy full SHA for eda521e
1 file changed
Templates/CSharp/Model/ComplexType.cs.tt
@@ -18,8 +18,8 @@ var classType = complex.IsAbstract ? "abstract partial class" : "partial class";
18
var attributeStringBuilder = new StringBuilder();
19
attributeStringBuilder.Append("[JsonObject(MemberSerialization = MemberSerialization.OptIn)]");
20
21
-// We only want to add the derived type converter to the concrete class at the top of the inheritance hierarchy
22
-if (!complex.IsAbstract && complex.Derived != null && (complex.Base == null || complex.Base.IsAbstract))
+// We only want to add the derived type converter to the class at the top of the inheritance hierarchy
+if (complex.Derived != null && complex.Base == null)
23
{
24
attributeStringBuilder.Append(Environment.NewLine);
25
attributeStringBuilder.Append(" ");
0 commit comments