Open tfukushima opened 4 years ago
👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.
The team will review the labels and make any necessary changes.
@tfukushima thanks for reporting the issue. Please file a PR so that we can review your fix more easily.
Bug Report Checklist
Description
In the API templates for Retrofit2 with Play framework, api.mustache, retrofit2.Response is imported but it is conflicted with the definition of the response defined inline in the responses section and it does not refer to the external definition by "ref" pointer. This causes the compilation errors since the generated code are imported before retrofit2.Response and they do not get along with the definition of Retrofit2's Response class.
openapi-generator version
OpenAPI declaration file content or url
https://support.sigfox.com/api/apidocs
Command line used for generation
Steps to reproduce
The compilation in the last step fails with compile errors.
Related issues/PRs
None
Suggest a fix
I made a patch and I'm wiling to make a PR with it if this issue got accepted.
https://github.com/tfukushima/openapi-generator/commit/42e3c4144cca8d9a980c5f29fd181f5c898e22cc