Commit 2bdcb2f
fix(kotlin-spring): container inline enums must not get
EnumValueInterfaceUtils.injectInPostProcessModelsEnum() adds
ValuedEnum<...> to x-kotlin-implements only for `var.isEnum &&
!var.isContainer`, but dataClass.mustache emitted the `override` keyword
for every enum whenever useEnumValueInterface=true. Container inline
enums therefore produced uncompilable Kotlin (`overrides nothing`) since
the enum class did not actually implement any interface to override.
Gating the `override` token on `^isContainer` keeps the template in sync
with the util.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>override val value
1 parent 4f7a6dc commit 2bdcb2f
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments