openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

[BUG] [JAXRS-CXF-Client] Missing Enum Getter

Open jvs64893 opened this issue 7 years ago • 0 comments

Description

Generating a client via jaxrs-cxf-client generates models with the correct enums but is missing the fitting enum getter. Instead the only generated getters are returning a String based on enum.value().

openapi-generator version

3.3.4 / 4.0.0-beta2

OpenAPI declaration file content or url

https://gist.github.com/ryj67245/a550b64a5aa60638432a21bd43b25756

Command line used for generation

-g jaxrs-cxf-client

Steps to reproduce
  1. Generate via CLI
  2. Check Java source
  3. No getter for enum
Suggest a fix

Add getter for enum to template

jvs64893 avatar Feb 20 '19 12:02 jvs64893