Open mikezilla opened 2 years ago
I'm having this exact same issue
library: jvm-okhttp4
does the issue only occur with the jvm-okhttp4
library or all libraries as well?
if it only occurs with jvm-okhttp4
, we can plot the fix from other libraries' template.
I've only tested this with the Kotlin multiplatform template so far.
Thanks for planning to fix this, in the meantime I used this temporary fix by changing this in data_class_opt_var.mustache
& data_class_req_var_mustache
:
{{classname}}.{{{nameInCamelCase}}}
To:
{{modelPackage}}.{{classname}}.{{{nameInCamelCase}}}
can you please file a PR with the suggested fix?
let me know if you need any help
@wing328 Yes, I have created a PR here: https://github.com/OpenAPITools/openapi-generator/pull/17414 Hope this helps 💪
Bug Report Checklist
Description
When an enum with the same name as the class name that it resides in is generated, the generator produces an output that does not compile.
openapi-generator version
generator version 6.2.1
OpenAPI declaration file content or url
link to the json gist
Generation Details
Steps to reproduce
Related issues/PRs
https://github.com/OpenAPITools/openapi-generator/issues/13496
Suggest a fix
Our theory is that there is an issue with the mustache generation template