# Swagger generation for Go language is failing

**URL:** <https://devforum.zoom.us/t/swagger-generation-for-go-language-is-failing/8409>\
**Category:** API and Webhooks\
**Created:** [March 4, 2020, 7:05pm UTC](https://devforum.zoom.us/t/swagger-generation-for-go-language-is-failing/8409 "2020-03-04T19:05:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shanagud](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shanagud/32/2243_2.png) [@shanagud](https://devforum.zoom.us/u/shanagud)\
**Post date:** [March 4, 2020, 7:05pm UTC](https://devforum.zoom.us/t/swagger-generation-for-go-language-is-failing/8409/1 "2020-03-04T19:05:20Z")

</div>

**Description**  
When trying to use go-swagger to generate a client, it results in an error.  
[https://marketplace.zoom.us/docs/api-reference/zoom-api/Zoom%20API.oas2.json](https://marketplace.zoom.us/docs/api-reference/zoom-api/Zoom%20API.oas2.json)

**Error**  
swagger generate client -f Zoom\ API.oas2.json --skip-validation --target $GOPATH/src2020/03/05 00:27:38 preprocessing spec with option: minimal flattening  
2020/03/05 00:27:39 building a plan for generation  
2020/03/05 00:27:39 generation target /home/srikanth/workspace/src  
2020/03/05 00:27:39 planning definitions  
2020/03/05 00:27:44 planning operations  
2020/03/05 00:32:29 grouping operations into packages  
2020/03/05 00:32:29 planning meta data and facades  
2020/03/05 00:32:30 rendering 1 templates for model Account  
2020/03/05 00:32:30 name field Account  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “account.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model AccountList  
2020/03/05 00:32:30 name field AccountList  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “account\_list.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model AccountListItem  
2020/03/05 00:32:30 name field AccountListItem  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “account\_list\_item.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model AccountOptions  
2020/03/05 00:32:30 name field AccountOptions  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “account\_options.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model AccountPlan  
2020/03/05 00:32:30 name field AccountPlan  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “account\_plan.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model AccountPlanBaseRequired  
2020/03/05 00:32:30 name field AccountPlanBaseRequired  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “account\_plan\_base\_required.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model AccountPlanRequired  
2020/03/05 00:32:30 name field AccountPlanRequired  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “account\_plan\_required.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model AccountPlans  
2020/03/05 00:32:30 name field AccountPlans  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “account\_plans.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model AccountSettings  
2020/03/05 00:32:30 name field AccountSettings  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “account\_settings.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model AccountSettingsAuthentication  
2020/03/05 00:32:30 name field AccountSettingsAuthentication  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “account\_settings\_authentication.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model AccountSettingsAuthenticationUpdate  
2020/03/05 00:32:30 name field AccountSettingsAuthenticationUpdate  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “account\_settings\_authentication\_update.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model AccountSettingsEmailNotification  
2020/03/05 00:32:30 name field AccountSettingsEmailNotification  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “account\_settings\_email\_notification.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model AccountSettingsFeature  
2020/03/05 00:32:30 name field AccountSettingsFeature  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “account\_settings\_feature.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model AccountSettingsInMeeting  
2020/03/05 00:32:30 name field AccountSettingsInMeeting  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “account\_settings\_in\_meeting.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model AccountSettingsIntegration  
2020/03/05 00:32:30 name field AccountSettingsIntegration  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “account\_settings\_integration.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model AccountSettingsRecording  
2020/03/05 00:32:30 name field AccountSettingsRecording  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “account\_settings\_recording.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model AccountSettingsRecordingAuthenticationUpdate  
2020/03/05 00:32:30 name field AccountSettingsRecordingAuthenticationUpdate  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “account\_settings\_recording\_authentication\_update.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model AccountSettingsScheduleMeeting  
2020/03/05 00:32:30 name field AccountSettingsScheduleMeeting  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “account\_settings\_schedule\_meeting.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model AccountSettingsSecurity  
2020/03/05 00:32:30 name field AccountSettingsSecurity  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “account\_settings\_security.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model AccountSettingsTSP  
2020/03/05 00:32:30 name field AccountSettingsTSP  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “account\_settings\_t\_s\_p.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model AccountSettingsTelephony  
2020/03/05 00:32:30 name field AccountSettingsTelephony  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “account\_settings\_telephony.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model AccountSettingsZoomRooms  
2020/03/05 00:32:30 name field AccountSettingsZoomRooms  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “account\_settings\_zoom\_rooms.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model BillingContact  
2020/03/05 00:32:30 name field BillingContact  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “billing\_contact.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model BillingContactRequired  
2020/03/05 00:32:30 name field BillingContactRequired  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “billing\_contact\_required.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model Channel  
2020/03/05 00:32:30 name field Channel  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “channel.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model CreateWebinarSettings  
2020/03/05 00:32:30 name field CreateWebinarSettings  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “create\_webinar\_settings.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model CustomQuestion  
2020/03/05 00:32:30 name field CustomQuestion  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “custom\_question.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model DateTime  
2020/03/05 00:32:30 name field DateTime  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “date\_time.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model Device  
2020/03/05 00:32:30 name field Device  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “device.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model DeviceList  
2020/03/05 00:32:30 name field DeviceList  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “device\_list.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model DomainsList  
2020/03/05 00:32:30 name field DomainsList  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “domains\_list.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model Group  
2020/03/05 00:32:30 name field Group  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “group.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model GroupList  
2020/03/05 00:32:30 name field GroupList  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “group\_list.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model GroupMember  
2020/03/05 00:32:30 name field GroupMember  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “group\_member.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model GroupMemberList  
2020/03/05 00:32:30 name field GroupMemberList  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “group\_member\_list.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model GroupUserSettingsAuthentication  
2020/03/05 00:32:30 name field GroupUserSettingsAuthentication  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “group\_user\_settings\_authentication.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model GroupUserSettingsAuthenticationUpdate  
2020/03/05 00:32:30 name field GroupUserSettingsAuthenticationUpdate  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “group\_user\_settings\_authentication\_update.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model IMGroup  
2020/03/05 00:32:30 name field IMGroup  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “i\_m\_group.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model IMGroupList  
2020/03/05 00:32:30 name field IMGroupList  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “i\_m\_group\_list.go” in “/home/srikanth/workspace/src/models” as definition  
2020/03/05 00:32:30 executed template asset:model  
2020/03/05 00:32:30 rendering 1 templates for model Meeting  
2020/03/05 00:32:30 name field Meeting  
2020/03/05 00:32:30 package field models  
2020/03/05 00:32:30 creating generated file “meeting.go” in “/home/testapp /workspace/src/models” as definition  
failed rendering template data for definition: template execution failed for template definition: template: schemavalidator:491:65: executing “schemavalidator” at \<.\>: wrong type for value; expected string; got float64

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
NA

**Which Endpoint/s?**  
NA

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

1. Run the below go-swagger command  
swagger generate client -f Zoom\ API.oas2.json --skip-validation --target $GOPATH/src
2. You should see error like below  
failed rendering template data for definition: template execution failed for template definition: template: schemavalidator:491:65: executing “schemavalidator” at \<.\>: wrong type for value; expected string; got float64

**Screenshots (If applicable)**  
If applicable, add screenshots to help explain your problem.

**Additional context**  
Add any other context about the problem here.

---

<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:** [March 4, 2020, 11:50pm UTC](https://devforum.zoom.us/t/swagger-generation-for-go-language-is-failing/8409/2 "2020-03-04T23:50:12Z")

</div>

Hey @shanagud, thanks for posting and using Zoom!

Can you try this:

> [@Autorest Swagger c# client](https://devforum.zoom.us/t/autorest-swagger-c-client/7650/2):
>
> Hey @kiesel.dennis, thanks for posting and using Zoom! You will have to [convert the JSON to Open API 3](https://editor.swagger.io/) and then it will work. [Screen Shot 2020-01-23 at 10.34.56 AM] Thanks, Tommy

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![shanagud](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shanagud/32/2243_2.png) [@shanagud](https://devforum.zoom.us/u/shanagud)\
**Post date:** [March 5, 2020, 6:02pm UTC](https://devforum.zoom.us/t/swagger-generation-for-go-language-is-failing/8409/3 "2020-03-05T18:02:30Z")

</div>

Hi Tommy,

Thanks, but that doesn’t help. The one you shared is for C#, and the google drive doesn’t have the client library for Golang.  
We still get errors when trying to use go-swagger for generating the client library.

Thanks  
Sri

---

<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:** [March 5, 2020, 8:41pm UTC](https://devforum.zoom.us/t/swagger-generation-for-go-language-is-failing/8409/4 "2020-03-05T20:41:12Z")

</div>

Hey @shanagud,

Thanks for trying that. We will work on fixing the errors.

-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, 7:29pm UTC](https://devforum.zoom.us/t/swagger-generation-for-go-language-is-failing/8409/5 "2020-08-21T19:29:20Z")

</div>

Closed on August 21, 2020, 7:29pm UTC



---

<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/swagger-generation-for-go-language-is-failing/8409/6 "2025-01-22T22:11:28Z")

</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
