# Issues with Swagger client generation for Java

**URL:** <https://devforum.zoom.us/t/issues-with-swagger-client-generation-for-java/6105>\
**Category:** API and Webhooks\
**Created:** [October 1, 2019, 8:08pm UTC](https://devforum.zoom.us/t/issues-with-swagger-client-generation-for-java/6105 "2019-10-01T20:08:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![lweber.bt\_dev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lweber.bt_dev/32/2362_2.png) [@lweber.bt\_dev](https://devforum.zoom.us/u/lweber.bt_dev)\
**Post date:** [October 1, 2019, 8:08pm UTC](https://devforum.zoom.us/t/issues-with-swagger-client-generation-for-java/6105/1 "2019-10-01T20:08:54Z")

</div>

I have noticed two problems with the generated Java client code. At the moment, these require manual changes by me in order to use the client API code.

1. The user ‘pmi’ field is typed as a Java Integer in the InlineResponse20033 model class, but the field is required to have 10-digits. This means that any pmi which represents a number greater than 2147483647 (0x7FFFFFFF) will overflow the Java Integer type, and de-serialization (for example, Jackson libraries) will throw an exception.

2. The account ‘id’ field is typed as a java.util.UUID in the AccountListAccounts model class, and the UUID type has a specific 36-character format (including 4 dashes). The ids of the test accounts that we have created do not follow this format (they are 22-character strings), and so de-serialization (for example, Jackson libraries) will throw an exception. I am assuming these id’s are generated by the Zoom system.

Thanks  
Lloyd

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [October 1, 2019, 10:04pm UTC](https://devforum.zoom.us/t/issues-with-swagger-client-generation-for-java/6105/2 "2019-10-01T22:04:26Z")

</div>

Hey @lweber.bt_dev, thanks for posting and using Zoom!

We are working on fixing the generation of the Java Client Code. I will post back here once it is fixed.

Duplicate Post:

> [@Can not generate Java client for Swagger/OpenAPI spec](https://devforum.zoom.us/t/can-not-generate-java-client-for-swagger-openapi-spec/5201/12):
>
> Hello Tommy, 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 cann…

Apologies for the inconvenience.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [October 2, 2019, 9:40pm UTC](https://devforum.zoom.us/t/issues-with-swagger-client-generation-for-java/6105/4 "2019-10-02T21:40:50Z")

</div>

Hey @lweber.bt_dev,

Can you try again? We have updated the Client Code.

Let me know if it works for you! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![lweber.bt\_dev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lweber.bt_dev/32/2362_2.png) [@lweber.bt\_dev](https://devforum.zoom.us/u/lweber.bt_dev)\
**Post date:** [October 24, 2019, 5:53pm UTC](https://devforum.zoom.us/t/issues-with-swagger-client-generation-for-java/6105/6 "2019-10-24T17:53:17Z")

</div>

Thanks Tommy,

I have noticed the account ‘id’ field is now a String and so no more error there. However, the user ‘pmi’ field still errors with numbers greater than 2147483647 (as described before). Also, the lower-case ‘object’ type is still present and must be manually fixed.

Thanks for the update.  
Lloyd

---

<div class="post-metadata">

**Author:** ![lweber.bt\_dev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lweber.bt_dev/32/2362_2.png) [@lweber.bt\_dev](https://devforum.zoom.us/u/lweber.bt_dev)\
**Post date:** [October 28, 2019, 7:02pm UTC](https://devforum.zoom.us/t/issues-with-swagger-client-generation-for-java/6105/8 "2019-10-28T19:02:02Z")

</div>

Also, I notice that the generated MeetingsApi.java class returns a GroupList object from the meetings() method - this must be the wrong return type because it does not contain any meeting info.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [October 28, 2019, 9:12pm UTC](https://devforum.zoom.us/t/issues-with-swagger-client-generation-for-java/6105/9 "2019-10-28T21:12:34Z")

</div>

Hey @lweber.bt_dev,

Thanks for the details! I will pass this on our team and have them fix it! 🙂

JIRA: DEVELOPERS-404

-Tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [November 11, 2019, 9:32pm UTC](https://devforum.zoom.us/t/issues-with-swagger-client-generation-for-java/6105/10 "2019-11-11T21:32:27Z")

</div>

Hey @lweber.bt_dev,

We have updated the Java Client Library:

> **[java.zip](https://drive.google.com/file/d/1H5S9sPj8Gm_Wf9bQZr9cjmDRn1ToWQc_/view?usp=drive_open)**
>
> Google Drive file.

And the updated Open API JSON:

> **[openapi.zip](https://drive.google.com/file/d/1Gw8bUJfeQNc_en-xY72I9Dec9WjFBE-T/view?usp=drive_open)**
>
> Google Drive file.

Let me know if this works for you all! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 6:59pm UTC](https://devforum.zoom.us/t/issues-with-swagger-client-generation-for-java/6105/11 "2020-08-21T18:59:22Z")

</div>



---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 22, 2025, 10:11pm UTC](https://devforum.zoom.us/t/issues-with-swagger-client-generation-for-java/6105/12 "2025-01-22T22:11:48Z")

</div>

Hey everyone,

Recently we launched **Zoom Rivet for Node.js**. Zoom Rivet is **Zoom’s Official API Library and API Wrapper**.

We currently support Node.js. Java, Python, GO, C#, and other languages are coming soon or being considered.

[Zoom Rivet](https://developers.zoom.us/docs/rivet/javascript/get-started/) is available on [npm](https://www.npmjs.com/package/@zoom/rivet) and can be used to automatically handle [OAuth](https://developers.zoom.us/docs/rivet/javascript/authorization/) and easily call [Zoom APIs](https://developers.zoom.us/docs/api/) like [Meetings](https://developers.zoom.us/docs/api/meetings/), [Phone](https://developers.zoom.us/docs/api/phone/), [Users](https://developers.zoom.us/docs/api/users/), [Team Chat](https://developers.zoom.us/docs/api/team-chat/), [Chatbot](https://developers.zoom.us/docs/api/chatbot/), [Accounts](https://developers.zoom.us/docs/api/accounts/), [Video SDK](https://developers.zoom.us/docs/api/video-sdk/), and more. It even includes a Webhook server to easily receive Zoom [Webhooks](https://developers.zoom.us/docs/api/webhooks/).

```auto
npm install @zoom/rivet

```

Example that handles OAuth and calls a Meeting API and listens to a webhook event:

```js
import { MeetingsS2SAuthClient } from "@zoom/rivet/meetings";

(async () => {
   const meetingsClient = new MeetingsS2SAuthClient({
      clientId: process.env.CLIENT_ID,
      clientSecret: process.env.CLIENT_SECRET,
      webhooksSecretToken: process.env.WEBHOOKS_SECRET_TOKEN,
      accountId: process.env.ACCOUNT_ID
   });

   // Rivet Events and Endpoints Go Here

   meetingsClient.endpoints.meetings.getMeeting({
      path: { meetingId: "MEETINGID" }
   }).then((response) => {
      console.log(response)
   });

   meetingsClient.webEventConsumer.event("meeting.started", (response) => {
      console.log(response.payload);
   })

   const server = await meetingsClient.start();

   console.log(`Zoom Rivet Events Server running on: ${JSON.stringify(server.address())}`);
})();

```

NPM:

> **[@zoom/rivet](https://www.npmjs.com/package/@zoom/rivet)**
>
> Zoom Rivet is a comprehensive toolkit built to help developers quickly integrate and manage server-side applications within the Zoom ecosystem. This tool currently supports Node.js, offering core functionalities like authentication, API wrappers, and...

Docs:

> **[Get started - Zoom Developers](https://developers.zoom.us/docs/rivet/javascript/get-started/)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

Sample App:

> **[GitHub - zoom/rivet-javascript-sample: Standup Bot sample app for Zoom Rivet for...](https://github.com/zoom/rivet-javascript-sample)**
>
> Standup Bot sample app for Zoom Rivet for JavaScript

For feedback, requests, or questions please refer to the Rivet Devforum Category:

> **[Zoom Rivet](https://devforum.zoom.us/c/rivet/90)**
>
> Zoom Rivet helps quickly integrate server-side applications with Zoom. Built-in authentication, API wrappers and event subscriptions let you focus on business logic, not infrastructure.

Best,  
Tommy
