-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java Feign template doesn't work with Feign 10 #977
Comments
Yes feel free to file a pull request for that. Please also update the corresponding dependencies for the generated pom.xml: openapi-generator/modules/openapi-generator/src/main/resources/Java/libraries/feign/pom.mustache Lines 296 to 297 in 3abeb82
the generated gradle file: Lines 126 to 127 in 3abeb82
and the generated sbt file: Lines 13 to 16 in 3abeb82
Thank you in advance, do not hesitate to ping us if you need help with something. |
For this one, I suggest we add an option "feignOption" to allow users setting the Feign version: 9.x, 10.x, with the following mustache tags:
Please let me know if you need help on this. |
Hello,
Currently Java Feign template generates code for Feign 9.4.0.
I'd like the generated client to work with Feign 10.0.1 since I already use that version in my project.
However that not possible currently because of breaking change in Feign:
https://github.com/OpenFeign/feign/pull/744/files#diff-64c69768b214213c25fd1246bae90adaR33 -
RetryableException
constructor wants HTTP method now.Looks like it's only thrown here in this file: https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/Java/libraries/feign/auth/OAuth.mustache#L95
So I had to overwrite original template with my own to generate working code right now.
But is it possible to update the template to support newer Feign out of box?
The text was updated successfully, but these errors were encountered: