# Swagger Generator Fails

**URL:** <https://forums.eveonline.com/t/swagger-generator-fails/11333>\
**Category:** Third Party Developers\
**Tags:** api, esi\
**Created:** [July 21, 2017, 5:10pm UTC](https://forums.eveonline.com/t/swagger-generator-fails/11333 "2017-07-21T17:10:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edlorna\_Tinebe](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/edlorna_tinebe/32/7340_2.png) [@Edlorna\_Tinebe](https://forums.eveonline.com/u/Edlorna_Tinebe)\
**Post date:** [July 21, 2017, 5:10pm UTC](https://forums.eveonline.com/t/swagger-generator-fails/11333/1 "2017-07-21T17:10:02Z")

</div>

I tried to follow the instructions here - [https://developers.eveonline.com/blog/article/swagger-codegen](https://developers.eveonline.com/blog/article/swagger-codegen) - to automagically produce an API, but [editor.swagger.io](http://editor.swagger.io) fails silently. I went with the curl option instead, and got an error back about being unable to generate an API for “characters”. I don’t know where to start diagnosing the error, though. Is it in the swagger.json from CCP, is it in the editor, or is my computer resposible for generating the code and I’m missing a dependency?

---

<div class="post-metadata">

**Author:** ![Phrynohyas\_Tig-Rah](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/phrynohyas_tig-rah/32/420039_2.png) [@Phrynohyas\_Tig-Rah](https://forums.eveonline.com/u/Phrynohyas_Tig-Rah)\
**Post date:** [July 21, 2017, 8:21pm UTC](https://forums.eveonline.com/t/swagger-generator-fails/11333/2 "2017-07-21T20:21:29Z")

</div>

For the start you can try to find out what exactly is wrong. Take this route [https://swagger.io/docs/swagger-tools/#installation-11](https://swagger.io/docs/swagger-tools/#installation-11) to run the codegen locally on your computer. Youi’ll get way more verbose error message if code generation will fail.

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blacksmoke16/32/376589_2.png) [@Blacksmoke16](https://forums.eveonline.com/u/Blacksmoke16)\
**Post date:** [July 21, 2017, 10:20pm UTC](https://forums.eveonline.com/t/swagger-generator-fails/11333/3 "2017-07-21T22:20:25Z")

</div>

[https://developers.eveonline.com/blog/article/swagger-codegen-update](https://developers.eveonline.com/blog/article/swagger-codegen-update)

---

<div class="post-metadata">

**Author:** ![Golden\_Gnu](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/golden_gnu/32/459734_2.png) [@Golden\_Gnu](https://forums.eveonline.com/u/Golden_Gnu)\
**Post date:** [August 6, 2017, 7:55pm UTC](https://forums.eveonline.com/t/swagger-generator-fails/11333/4 "2017-08-06T19:55:27Z")

</div>

I found that version 2.2.2 of the codegen works without any problems, you can download it here:

> **[swagger-api/swagger-codegen](https://github.com/swagger-api/swagger-codegen)**
>
> swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.

---

<div class="post-metadata">

**Author:** ![Volund\_Thellere](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/volund_thellere/32/28507_2.png) [@Volund\_Thellere](https://forums.eveonline.com/u/Volund_Thellere)\
**Post date:** [October 1, 2017, 4:25pm UTC](https://forums.eveonline.com/t/swagger-generator-fails/11333/5 "2017-10-01T16:25:52Z")

</div>

Version 2.2.2 and even the 3.0 version available from the GitHub does compile. However, I’m getting a missing file for my chosen output mode (qt5cpp). SWGNumber.h does not exist. I am having a hard time figuring out if it’s an issue with the generator or ESI’s specifications. Googled the situation for several hours, came up with nothing. Am currently trying to modify the generated files to exclude the API grouping (which I don’t need) that’s causing the issue: the LoyaltyAPI, apparently.
