# Can not generate Java client for Swagger/OpenAPI spec

**URL:** <https://devforum.zoom.us/t/can-not-generate-java-client-for-swagger-openapi-spec/5201>\
**Category:** API and Webhooks\
**Created:** [July 26, 2019, 9:47am UTC](https://devforum.zoom.us/t/can-not-generate-java-client-for-swagger-openapi-spec/5201 "2019-07-26T09:47:06Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![sassy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sassy/32/1814_2.png) [@sassy](https://devforum.zoom.us/u/sassy)\
**Post date:** [September 13, 2019, 2:24am UTC](https://devforum.zoom.us/t/can-not-generate-java-client-for-swagger-openapi-spec/5201/12 "2019-09-13T02:24:41Z")

</div>

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

Any help is highly appreciated.

Thanks,  
-sr-

---

_[View the full topic](https://devforum.zoom.us/t/can-not-generate-java-client-for-swagger-openapi-spec/5201)._
