#6130 ### Description This comment is inconsistent: https://github.com/OpenAPITools/openapi-generator/blob/e2e3405689e5fab0bf4e5545fdc8f0a393cb7b9d/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/EnumTest.java#L228 ##### Suggest a fix The method returns the value of enumNumber, rather than enumNumber itself. And if it is not set, it will return null.