Open mnisius opened 1 year ago
@mnisius thanks for reporting the issue. May I know if you've time to contribute a fix?
I can show you some good starting points.
PM me via Slack (https://join.slack.com/t/openapi-generator/shared_invite/zt-12jxxd7p2-XUeQM~4pzsU9x~eGLQqX2g) to discuss further.
Description
I'm trying to generate a groovy model from an openapi spec. Sadly enums are always generated es an empty class. If I use the java generator I get a correct enum with all the defined values inside. So my guess is there is a bug in the groovy generator.
My schema looks like this:
and the generated groovy code looks sadly like this:
I was expecting something like:
openapi-generator version
6.2.1
OpenAPI declaration file content or url
Generation Details
I use the maven plugin. These are my settings:
Steps to reproduce
Use the groovy generator to generate models from an openapi spec with enums
Related issues/PRs
I could not find any...
Suggest a fix
Usable enums please 🙂