You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d7dd6d0
Browse filesBrowse the repository at this point in the historyBrowse files
A schema that both inherits via allOf and is itself inherited from was
rendered as a `data class`, which Kotlin cannot subclass, so the
generated code did not compile.
Such a mid-level model is now rendered as an `open class`: its own
properties are marked `open`, and its children emit a parent constructor
call. Because `open class` gives up the compiler-generated data class
members, the template generates equals/hashCode/toString/copy from
allVars. Destructuring (componentN) is not generated and is a known
limitation of this rendering.
Adds the allOf-multilevel sample (Animal <- Dog <- BigDog) to the
kotlin-server sample workflows so the generated code is compiled in CI.
Claude-Session: https://claude.ai/code/session_01VBn7VWUxZL6mTUbg21xNjm
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
}}{{#parent}} : {{{.}}}{{#isMap}}(){{/isMap}}{{! no newline
24
+
}}{{#parent}} : {{{.}}}{{#vendorExtensions.x-parent-is-class}}({{{vendorExtensions.x-parent-ctor-args}}}){{/vendorExtensions.x-parent-is-class}}{{^vendorExtensions.x-parent-is-class}}{{#isMap}}(){{/isMap}}{{/vendorExtensions.x-parent-is-class}}{{! no newline
25
25
}}{{#vendorExtensions.x-kotlin-implements}}, {{{.}}}{{/vendorExtensions.x-kotlin-implements}}{{!<- serializableModel is also handled via x-kotlin-implements
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/test/java/org/openapitools/codegen/kotlin/spring/KotlinSpringServerCodegenTest.java
+104Lines changed: 104 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7896,4 +7896,108 @@ public void extraImportsDedupAgainstGeneratedImports() throws IOException {
0 commit comments