Forum Discussion
pap
are you working with SwaggerHub SaaS or On-Prem?
The generated Java code from SaaS version should give you something like the following
searchaccountsCall(Integer numberId, Integer numberId2, Integer......)
If you could give a little bit more info, it might help look in to the issue further
- pap3 years agoNew Contributor
Hello MConneely ,
What other info do you need?
I provided the exact scenario under which the code generation fails.
You say it should generate this but I saw it doesn't generate it this way.
I login to https://app.swaggerhub.com/ so I guess it's SaaS.
Do you want me to create a sample API definition and refer you to it?
Thanks in advance.
- pap3 years agoNew Contributor
- pap3 years agoNew Contributor
I created a sample TEST API which demonstrates the issue.
It is a public API.
I also added swaggerhub-support as a collaborator to this API.
The API is here:
https://app.swaggerhub.com/apis/hibu/TEST_API_001/1.0.0
If you generate from this API Client SDK code in Java, you will see the issue.
Several methods are generated which all have duplicate parameters like e.g.
public Response findAvailableNumbersByTheirIds(Integer numberId, Integer numberId) throws ApiException {
...
}
Of course this Java code does not compile.
Please take a look.
Related Content
- 2 years ago
- 2 years ago
- 6 years ago
Recent Discussions
- 2 days ago
- 19 days ago