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

[BUG][JAVA][FEIGN] Doesn't compile when generateSupportingFiles=false

Open juherr opened this issue 5 years ago • 5 comments

Bug Report Checklist

  • [ ] Have you provided a full/minimal spec to reproduce the issue?
  • [ ] Have you validated the input using an OpenAPI validator (example)?
  • [ ] Have you tested with the latest master to confirm the issue still exists?
  • [x] Have you searched for related issues/PRs?
  • [ ] What's the actual output vs expected output?
  • [ ] [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

The generated client interfaces import ApiClient and EncodingUtils which are not generated when generateSupportingFiles=false

openapi-generator version

5.2.0

OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix
  • Generate EncodingUtils event if generateSupportingFiles=false
  • Don't extends ApiClient.Api if generateSupportingFiles=false

juherr avatar Jul 09 '21 15:07 juherr

Ping @davidkiss 🙏

juherr avatar Jul 09 '21 15:07 juherr

@juherr I worked on the feign integration many years ago and not familiar with the latest code.

davidkiss avatar Jul 29 '21 11:07 davidkiss

@davidkiss No problem. Just notice you are the only one listed on https://github.com/OpenAPITools/openapi-generator#template-creator ;)

juherr avatar Jul 29 '21 12:07 juherr

@juherr did you find any workaround for this?

dfjmax avatar Jul 18 '23 15:07 dfjmax

@dfjmax No. A fix should be propose but I'm not using it anymore and it seems nobody officially supports it

juherr avatar Jul 18 '23 15:07 juherr