It’s generate java client, but when I build it, several compilation problem occurred, e.g.
symbol: class object
location: class MeetingsApi
C:\GIT\test-app\src\main\java\io\swagger\client\api\MeetingsApi.java:1643: error: cannot find symbol
public com.squareup.okhttp.Call meetingRegistrantQuestionUpdateCall(Integer meetingId, object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
^
Question: Is it possible to generate java client from “Zoom API.oas2.json”? Or may be it’s possible to use some Zoom SDK for java, to avoid using plain Unirest/OkHttp ?
thanks for your reply. We tried to generate java client from zoom-api.json you provided us, now it’s generated without 4 digits status code warnings, but sill can not generate some models for some APIs.
e.g. can not create model for meeting update, swagger codegen generate something like this:
public void meetingUpdate(Integer meetingId, UNKNOWN_BASE_TYPE body, String occurrenceId) throws ApiException
as well as for some other APIs: BillingApi, CloudRecordingApi, DashboardsApi, DevicesApi, ImChatApi, PhoneApi, ReportsApi, WebinarsApi
We tried to generate it with different tools like : https://editor.swagger.io/, using command line cli swagger-codegen-cli-2.4.7.jar , generate from gradle project using gradle swagger codegen plugin with different versions using “java” language and different libraries(jersey1, jersey2, okhhttp etc.) but all of them generate the code with some unknown models.
The API file loads properly in the Swagger editor tool, now that the extended response codes have been taken care of, but we are still seeing the same issues trying to generate java client code. Tried both Swagger and the OpenAPI codegen tools, and they both fail:
For e.g.,
Swagger (notice the lower case object):
object cannot be resolved to a type:
public InlineResponse2003 accountPlanCreate(String accountId, object body) throws ApiException {
OpenAPI:
UNKNOWN_BASE_TYPE cannot be resolved to a type:
public InlineResponse2003 accountPlanCreate(String accountId, UNKNOWN_BASE_TYPE body) throws ApiException {
There are a bunch of other errors while generating the code as well. I can upload all of the logs if needed.
Our team looked into this, we believe your issue is related to an issue with swagger. (Although we did update our OpenAPI to fix other issues, so would be worth a shot to try again).
Can you take a look at these threads and let me know if that fixes your issue?
I’m having the same issue. Using OpenAPI Generator version 4.1.3, tried both Kotlin and Java generators and both result in meetingCreate() having “UNKNOWN_BASE_TYPE body” as a parameter.
@tommy, I don’t think either of the links you posted are the solution to this problem. I am using a later version that supposed to have fixed a similar looking error message.