Swagger Generator Fails


(Edlorna Tinebe) #1

I tried to follow the instructions here - https://developers.eveonline.com/blog/article/swagger-codegen - to automagically produce an API, but 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?

(Phrynohyas Tig-Rah) #2

For the start you can try to find out what exactly is wrong. Take this route 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.

(Blacksmoke16) #3


(Golden Gnu) #4

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

(Volund Thellere) #5

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.