[JAVA] Implement #10176 (for 3.x)
Implemented #10176 (from the swagger-codegen repo) for jersey1, jersey2, resttemplate, and okhttp-gson. Each API call now has up to two additional methods:
- one containing only required parameters
- one containing required parameters + optional parameters, the latter in a builder-style format
It was necessary to fix a bug where the body parameter did not appear in the requiredParams list.
@HugoMario @frantuma
@michaelkourlas - Solution looks neat. One of the API that I consume has 10 optional parameters and I had to set null for all of them. Can this be added to the resttemplate type as well?
I'd like the maintainers to confirm whether they're interested in merging this PR before I make any further additions.
hey @michaelkourlas thanks for this PR, let me know once is ready to review it and merge it