Forum Discussion
hello AlexeyNezhdanov
I've just made some changes from java client generator and java server generator (spring, inflector, javajaxrs) related to this post.
Meantime next release is done you can try with this https://oss.sonatype.org/content/repositories/snapshots/io/swagger/codegen/v3/swagger-codegen-cli/3.0.11-SNAPSHOT/swagger-codegen-cli-3.0.11-20190816.152036-38.jar and let us know how it goes.
Best regards
- qiandj5 years agoOccasional Visitor
HI hugomario ,
I'm suffering the same issue with AlexeyNezhdanov , the base class in my yaml file was generated to "Object" in the polumorphism (using swagger-codegen-3.016).
The link in your reply seems not working anymore, do we have a fix for this issue ?
- hugomario5 years agoStaff
hello qiandj, can you try with latest release? this should have been addressed, in case it's still present, please let me know and i work on it asap.
- AlexeyNezhdanov5 years agoOccasional Contributor
Hi hugomario .
Sorry, I might have missed your previous update to this ticket, otherwise I would have tested this long ago.
I have tried the following (same YAML as in the OP):
1) java -jar openapi-generator-cli-4.3.0.jar generate -i openapi.yaml -g jaxrs-spec && mvn clean install
Result: COMPILATION ERROR.
Besides, when looking at the generated models the module org.openapitools.model.OneOfDogCat is imported but doesn't seem to be generated (at all).2) -g jaxrs-resteasy-eap
Same problem.
3) -g java-undertow-server
Same problem. The models are not referenced from the controller, however they reference each other and OneOfDogCat is still missing
4) -g java-inflector
Same problem.
5) -g java
This is a client build (all the previous were server ones) and it demonstrates the same problem - OneOfDogCat is used but is not generated.----------------- UPDATE ----------------
I have re-read my original post in this thread and it seems that there is another file that is not generated now: AllPetsResponse.Sorry, I'm taking this back. The file is indeed not generated, but it is also not used so that's fine.
Related Content
- 6 months agonado
Recent Discussions
- 6 days agokj20nt
- 14 days agoprogrammer_j
- 19 days agotobyclements