Open feikede opened 7 years ago
@feikede thanks for reporting the issue. May I know if you've time to contribute the fix?
https://github.com/swagger-api/swagger-codegen/blob/master/modules/swagger-codegen/src/main/resources/Java/api_doc.mustache is a good starting point and you can use the following mustache tag to check rxjava2 setting:
{{#useRxJava2}}
...
{{/useRxJava2}}
Yes, I think I can do this. Let me take a look at it.
Description
When I generate a Java client with {"useRxJava2":"true", "library":"retrofit2"} the generated docs are wrong, they don't match the api. Looks like it's just the standard java md-doc without the rxJava enhancements.
Swagger-codegen version
Version: 2.2.3 and 3.0.0-SNAPSHOT
Swagger declaration file content or url
can use Uber or any other example
Command line used for generation
java -jar /Users/rainer/bin/swagger-codegen-cli-2.2.3.jar generate -l java -o rx -i swagger.yaml -c rc2.cnf
rc2.cnf: {"useRxJava2":"true", "library":"retrofit2"}
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement
Thanks, Rainer Feike