#### Bug Report Checklist - [x] Have you provided a full/minimal spec to reproduce the issue? - [x] Have you validated the input using an OpenAPI validator? - [x] Have you [tested with the latest master](https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-to-test-with-the-latest-master-of-openapi-generator) to confirm the issue still exists? - [ ] Have you searched for related issues/PRs? - [x] What's the actual output vs expected output? - [ ] [Optional] Sponsorship to speed up the bug fix or feature request ([example](https://github.com/OpenAPITools/openapi-generator/issues/6178)) <!-- Please follow the issue template below for bug reports. Also please indicate in the issue title which language/library is concerned. E.g.: [BUG][JAVA] Bug generating foo with bar --> ##### Description Inner enums lack `implements`, while outer/standalone does not. Discovered here: https://github.com/Chrimle/openapi-to-java-records-mustache-templates/issues/578 Same root cause as #23082 ##### openapi-generator version 7.20.0 ##### OpenAPI declaration file content or url ```yaml components: schemas: ExampleWithInnerEnums: type: object description: Example with inner enum class properties: exampleInner: type: string description: Example of an inner enum class x-implements: - TestInterface enum: - ENUM1 - ENUM2 - ENUM3 ``` Generates: ```java @JsonAdapter(ExampleInnerEnum.Adapter.class) public enum ExampleInnerEnum { ``` But should be: ```java @JsonAdapter(ExampleInnerEnum.Adapter.class) public enum ExampleInnerEnum implements TestInterface { ``` ##### Generation Details Library: java ##### Steps to reproduce <!-- unambiguous set of steps to reproduce the bug.--> ##### Related issues/PRs - #23082 <!-- has a similar issue/PR been reported/opened before? Please do a search in https://github.com/openapitools/openapi-generator/issues?utf8=%E2%9C%93&q=is%3Aissue%20 --> ##### Suggest a fix <!-- if you can't fix the bug yourself, perhaps you can point to what might be causing the problem (line of code or commit), or simply make a suggestion -->
Activity
enumdoes notimplement SerializablewhenserializableModel=trueChrimle/openapi-to-java-records-mustache-templates#578KannaKim commentedon Jul 18, 2026
Is this still ongoing issues? I was not able to reproduce the issue with the spec given above