Open adroste opened 2 years ago
@adroste
could you try to use quarkus-openapi-generator
instead of this plugin?
https://github.com/quarkiverse/quarkus-openapi-generator
The quarkus-openapi-generator is working, but it's not perfect and definitely not a drop in replacement. As far as my research goes, these are the options for a quarkus based project:
Option 1: Quarkiverse OpenApi Generator
private List<MyDTO> myList = new ArrayList<>();
private List<MyDTO> myList = null;
Response myRequest(…);
myClient.myRequest(…).readEntity(ResponseDTO.class)
ResponseDTO myRequest(…)
myClient.myRequest(…)
Option 2: OpenAPITools OpenAPI Generator
Option 3: Swagger codegen
Option 4: tkit-mp-restclient-plugin
@adroste feel free to add suggestions/contribute to the quarkus-openapi-generator to enhance the compatibility you need for this project.
We were forced to update the plugin to jdk17 on our side. A few projects didn't work with Quarkus official plugin. e.g. problems with securityHeaders, customHeaders, oneOf hierarchy and beanParams required too much changes in a code. Some of those problems we resolved by making a change in official plugin. It would be great to have tkit plugins in java17 because a transition is very challenging.
@forszpanen this project is deprecated, we do recommend to migrate to quarkus-openapi-generator
https://github.com/1000kit/tkit-mp-restclient-plugin/blob/ad86d329c8ed3f67eefeea12d2a4835405725123/pom.xml#L52
This lib is not compatible with java 17 due to compile errors caused by jknack/handlebars which is a dependency of swagger-codegen. Similar issue: https://github.com/swagger-api/swagger-codegen/issues/10966
The erros are resolved with jknack/handlebars v4.3.0
Solutions: